changeset 3262:aa71f1d40300

plugin identity: fixed update when cached data is None
author Goffi <goffi@goffi.org>
date Mon, 20 Apr 2020 14:51:58 +0200
parents a9e8e925ad99
children e81ad34e8af8
files sat/plugins/plugin_misc_identity.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_identity.py	Sun Apr 19 22:52:15 2020 +0200
+++ b/sat/plugins/plugin_misc_identity.py	Mon Apr 20 14:51:58 2020 +0200
@@ -361,6 +361,8 @@
                         f"{metadata_name} for {entity} is already disabled, nothing to "
                         f"do")
                     return
+            elif cached_data is None:
+                pass
             elif not update_is_new_data(client, entity, cached_data, data):
                 log.debug(
                     f"{metadata_name} for {entity} is already in cache, nothing to "