Fix linting errors. (#343)

pull/115/head
Felix Fontein 2020-05-15 13:35:41 +02:00 committed by GitHub
parent 327832dcbb
commit 772bfe9936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ def create(
(check is None or check == i['check']) and (check is None or check == i['check']) and
( (
creator == '' or creator == '' or
creator == i['creator'])and creator == i['creator']) and
( (
reason == '' or reason == '' or
reason == i['reason']) and reason == i['reason']) and

View File

@ -875,7 +875,7 @@ class AzureInventory(object):
else: else:
env_settings = self._get_env_settings() env_settings = self._get_env_settings()
for key in AZURE_CONFIG_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(',') values = env_settings.get(key).split(',')
if len(values) > 0: if len(values) > 0:
setattr(self, key, values) setattr(self, key, values)