Skip to content

Commit

Permalink
fix error when no args are passed to publish.publish
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 committed Jan 15, 2012
1 parent 14812e2 commit 6cc4993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/modules/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def publish(tgt, fun, arg=None, expr_form='glob', returner=''):
if isinstance(ast.literal_eval(arg), dict):
arg = [arg,]
except:
arg = arg.split(',')
if isinstance(arg, str):
arg = arg.split(',')

auth = salt.crypt.SAuth(__opts__)
tok = auth.gen_token('salt')
Expand Down

0 comments on commit 6cc4993

Please sign in to comment.