1

Given the following function in a SaltStack module called salty, how do I sent a sequence to the event function for the tags argument, that is tags should be a Python list:

def event(name, desc, tags=None):
    assert type(tags) == list

I expected the following to work but it doesn't:

salt-call salty.event myname mydesc tags=tag1,tag2,tag3

c4urself
  • 5,530
  • 3
  • 28
  • 39

1 Answers1

2
salt-call salty.event myname mydesc tags='["tag1","tag2","tag3"]'
Dan Garthwaite
  • 2,962
  • 1
  • 19
  • 31