Fix labels to take multiple values

Closes-Bug: #1798362
Change-Id: I635e7d53f8aea63c05a2e5565f2a2ab40dcd38f8
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
(cherry picked from commit b28914702a)
This commit is contained in:
Bogdan Dobrelya 2018-10-17 14:03:52 +02:00 committed by Bogdan Dobrelya (bogdando)
parent d2a7acfa22
commit f12e6da460
2 changed files with 8 additions and 2 deletions

View File

@ -41,8 +41,9 @@ class Apply(command.Command):
metavar='<label=value>',
dest='labels',
default=[],
action='append',
help=('Extra labels to apply to containers in this config, in the '
'form label=value.'),
'form --label label=value --label label2=value2.'),
)
parser.add_argument(
'--managed-by',
@ -178,8 +179,9 @@ class Debug(command.Command):
metavar='<label=value>',
dest='labels',
default=[],
action='append',
help=('Extra labels to apply to containers in this config, in the '
'form label=value.')
'form --label label=value --label label2=value2.'),
)
parser.add_argument(
'--managed-by',

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Fixed ``--labels`` can takes multiple values.