Skip to content

Commit

Permalink
Allow import for a cluster with same name if failed earlier
Browse files Browse the repository at this point in the history
tendrl-bug-id: Tendrl#973
Bugzilla-id: 1579249, 1578885
Signed-off-by: Shubhendu <[email protected]>
  • Loading branch information
Shubhendu committed May 18, 2018
1 parent 4984dcd commit 19d28d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tendrl/commons/flows/import_cluster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def run(self):
integration_id=entry.key.split('/')[-1]
).load()
if _cluster.short_name and short_name and \
_cluster.is_managed == 'yes' and \
_cluster.short_name == short_name.strip().lower():
raise FlowExecutionFailedError(
"Cluster with name: %s already exists" % short_name
Expand Down

0 comments on commit 19d28d4

Please sign in to comment.