diff --git a/plugins/modules/monitoring/sensu/sensu_silence.py b/plugins/modules/monitoring/sensu/sensu_silence.py index d7d2c33edd..116e87f8e7 100644 --- a/plugins/modules/monitoring/sensu/sensu_silence.py +++ b/plugins/modules/monitoring/sensu/sensu_silence.py @@ -194,7 +194,7 @@ def create( (check is None or check == i['check']) and ( creator == '' or - creator == i['creator'])and + creator == i['creator']) and ( reason == '' or reason == i['reason']) and diff --git a/scripts/inventory/azure_rm.py b/scripts/inventory/azure_rm.py index 7dc438f6a2..18d46ef0a5 100644 --- a/scripts/inventory/azure_rm.py +++ b/scripts/inventory/azure_rm.py @@ -875,7 +875,7 @@ class AzureInventory(object): else: env_settings = self._get_env_settings() for key in AZURE_CONFIG_SETTINGS: - if key in('resource_groups', 'tags', 'locations') and env_settings.get(key): + if key in ('resource_groups', 'tags', 'locations') and env_settings.get(key): values = env_settings.get(key).split(',') if len(values) > 0: setattr(self, key, values)