Skip to content

Commit

Permalink
Merge pull request Tendrl#974 from shtripat/1579249-1578885
Browse files Browse the repository at this point in the history
Allow import for a cluster with same name if failed earlier
  • Loading branch information
r0h4n authored May 21, 2018
2 parents 4984dcd + 19d28d4 commit 89bb114
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 89bb114

Please sign in to comment.