Skip to content

Commit

Permalink
Change operator after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Nov 25, 2020
1 parent 2ab4d49 commit 0f7892d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/epicli/cli/engine/ansible/AnsibleInventoryUpgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 0f7892d

Please sign in to comment.