Fix bug in plan deletion when using osc plugin for karbor
Change-Id: Idb5620506dd800428407031eddd525e68b93f414
This commit is contained in:
@@ -259,9 +259,8 @@ class DeletePlan(command.Command):
|
||||
client.plans.delete(plan.id)
|
||||
except exceptions.NotFound:
|
||||
failure_count += 1
|
||||
raise exceptions.CommandError(
|
||||
"Failed to delete '{0}'; plan not found".
|
||||
format(plan_id))
|
||||
print("Failed to delete '{0}'; plan not "
|
||||
"found".format(plan_id))
|
||||
if failure_count == len(parsed_args.plan):
|
||||
raise exceptions.CommandError(
|
||||
"Unable to find and delete any of the "
|
||||
|
||||
Reference in New Issue
Block a user