Fix bug in plan deletion when using osc plugin for karbor

Change-Id: Idb5620506dd800428407031eddd525e68b93f414
This commit is contained in:
Jeremy Liu
2017-07-05 15:58:43 +08:00
parent 1b3b860565
commit 795fa730a8

View File

@@ -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 "