From b8704aa83260eb47430db09c4536fd62f3192aa8 Mon Sep 17 00:00:00 2001 From: "sonu.kumar" Date: Mon, 12 Oct 2015 14:49:12 +0530 Subject: [PATCH] Fixes exception message for zone creation command This patch fixes exception message which is raises while 'openstack zone create' command is provided with incorrect type. Change-Id: If3a84ee5bec0d7f72edc75ebfcc3aeeadfc83c69 Closes-Bug: #1505142 --- designateclient/v2/cli/zones.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designateclient/v2/cli/zones.py b/designateclient/v2/cli/zones.py index 19d0ad91..9b256cff 100644 --- a/designateclient/v2/cli/zones.py +++ b/designateclient/v2/cli/zones.py @@ -115,7 +115,7 @@ class CreateZoneCommand(show.ShowOne): else: msg = "Type %s is not supported. Please choose between " \ "PRIMARY or SECONDARY" - raise osc_exc.CommandError(msg) + raise osc_exc.CommandError(msg % parsed_args.type) data = client.zones.create( parsed_args.name, parsed_args.type, **payload)