Revision a57981c5 lib/cli.py
b/lib/cli.py | ||
---|---|---|
162 | 162 |
"SUBMIT_OPT", |
163 | 163 |
"STATIC_OPT", |
164 | 164 |
"SYNC_OPT", |
165 |
"TAG_ADD_OPT", |
|
165 | 166 |
"TAG_SRC_OPT", |
166 | 167 |
"TIMEOUT_OPT", |
167 | 168 |
"UIDPOOL_OPT", |
... | ... | |
634 | 635 |
help=("Ignore offline nodes and do as much" |
635 | 636 |
" as possible")) |
636 | 637 |
|
638 |
TAG_ADD_OPT = cli_option("--tags", dest="tags", |
|
639 |
default=None, help="Comma-separated list of instance" |
|
640 |
" tags") |
|
641 |
|
|
637 | 642 |
TAG_SRC_OPT = cli_option("--from", dest="tags_source", |
638 | 643 |
default=None, help="File with tag names") |
639 | 644 |
|
... | ... | |
2113 | 2118 |
" disk %d" % didx) |
2114 | 2119 |
disks[didx] = ddict |
2115 | 2120 |
|
2121 |
if opts.tags is not None: |
|
2122 |
tags = opts.tags.split(',') |
|
2123 |
else: |
|
2124 |
tags = [] |
|
2125 |
|
|
2116 | 2126 |
utils.ForceDictType(opts.beparams, constants.BES_PARAMETER_TYPES) |
2117 | 2127 |
utils.ForceDictType(hvparams, constants.HVS_PARAMETER_TYPES) |
2118 | 2128 |
|
... | ... | |
2156 | 2166 |
force_variant=force_variant, |
2157 | 2167 |
src_node=src_node, |
2158 | 2168 |
src_path=src_path, |
2169 |
tags=tags, |
|
2159 | 2170 |
no_install=no_install, |
2160 | 2171 |
identify_defaults=identify_defaults) |
2161 | 2172 |
|
Also available in: Unified diff