@@ -99,8 +99,8 @@ def get_parser(self, prog_name):
9999 help = _ ('Router that the conntrack helper belong to' )
100100 )
101101 parser .add_argument (
102- 'conntrack_helper_ids ' ,
103- metavar = '<conntrack-helper-ids >' ,
102+ 'conntrack_helper_id ' ,
103+ metavar = '<conntrack-helper-id >' ,
104104 nargs = '+' ,
105105 help = _ ('The ID of the conntrack helper(s) to delete' )
106106 )
@@ -112,7 +112,7 @@ def take_action(self, parsed_args):
112112 result = 0
113113
114114 router = client .find_router (parsed_args .router , ignore_missing = False )
115- for ct_helper in parsed_args .conntrack_helper_ids :
115+ for ct_helper in parsed_args .conntrack_helper_id :
116116 try :
117117 client .delete_conntrack_helper (
118118 ct_helper , router .id , ignore_missing = False )
@@ -123,7 +123,7 @@ def take_action(self, parsed_args):
123123 {'ct_helper' : ct_helper , 'e' : e })
124124
125125 if result > 0 :
126- total = len (parsed_args .conntrack_helper_ids )
126+ total = len (parsed_args .conntrack_helper_id )
127127 msg = (_ ("%(result)s of %(total)s L3 conntrack helpers failed "
128128 "to delete." ) % {'result' : result , 'total' : total })
129129 raise exceptions .CommandError (msg )
0 commit comments