From 729852d04a821f73c8c7c5266fb2a7b1dcd3ae46 Mon Sep 17 00:00:00 2001 From: "sonu.kumar" Date: Wed, 7 Oct 2015 15:24:07 +0530 Subject: [PATCH] Fixes openstack zone blacklist set command This patch fixes openstack zone blacklist set command's pattern option description. Change-Id: Ic832d4fb120fe98fc436b7d2f47113d45da967ea Closes-Bug: #1500604 --- designateclient/v2/cli/blacklists.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designateclient/v2/cli/blacklists.py b/designateclient/v2/cli/blacklists.py index 41df351..d3a6809 100644 --- a/designateclient/v2/cli/blacklists.py +++ b/designateclient/v2/cli/blacklists.py @@ -90,8 +90,8 @@ class SetBlacklistCommand(show.ShowOne): parser = super(SetBlacklistCommand, self).get_parser(prog_name) parser.add_argument('id', help="Blacklist ID") - parser.add_argument('--pattern', help="Blacklist pattern", - required=True) + parser.add_argument('--pattern', help="Blacklist pattern") + description_group = parser.add_mutually_exclusive_group() description_group.add_argument('--description', help="Description") description_group.add_argument('--no-description', action='store_true')