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

2
salt-call salty.event myname mydesc tags='["tag1","tag2","tag3"]'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.