From 0f7892d42726dcc379caf528059f539cfe3d92c8 Mon Sep 17 00:00:00 2001 From: to-bar <46519524+to-bar@users.noreply.github.com> Date: Wed, 25 Nov 2020 21:40:48 +0100 Subject: [PATCH] Change operator after code review --- core/src/epicli/cli/engine/ansible/AnsibleInventoryUpgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/epicli/cli/engine/ansible/AnsibleInventoryUpgrade.py b/core/src/epicli/cli/engine/ansible/AnsibleInventoryUpgrade.py index c02b27a816..7a33560ef9 100644 --- a/core/src/epicli/cli/engine/ansible/AnsibleInventoryUpgrade.py +++ b/core/src/epicli/cli/engine/ansible/AnsibleInventoryUpgrade.py @@ -103,14 +103,14 @@ def upgrade(self): # repository & image_registry roles added in v0.4.0 repository = self.get_role(new_inventory, 'repository') - if repository == None: + if repository is None: raise Exception('repository group not found in inventory. ' 'Your deployment may not be supported by this version of Epiphany. ' 'You may try to use older version first.') # add image_registry if not present image_registry = self.get_role(new_inventory, 'image_registry') - if image_registry == None: + if image_registry is None: hosts = [AnsibleHostModel(repository.hosts[0].name, repository.hosts[0].ip)] new_inventory.append(AnsibleInventoryItem('image_registry', hosts))