Skip to content

Commit c7a932b

Browse files
committed
Merge pull request softlayer#576 from Pexeso/do-not-clear-vs-tags
Don't clear tags when running `slcli vs edit` without any `--tag` option
2 parents 5f7306b + 9d3ccd0 commit c7a932b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

SoftLayer/CLI/virt/edit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ def cli(env, identifier, domain, userfile, tag, hostname, userdata):
3939

4040
data['hostname'] = hostname
4141
data['domain'] = domain
42-
data['tags'] = ','.join(tag)
42+
43+
if tag:
44+
data['tags'] = ','.join(tag)
4345

4446
vsi = SoftLayer.VSManager(env.client)
4547
vs_id = helpers.resolve_id(vsi.resolve_ids, identifier, 'VS')

0 commit comments

Comments
 (0)