Add cmd tag to the sign in payload

This commit is contained in:
Thomas S Hatch 2011-03-04 12:01:43 -07:00
parent 26b4aa45b7
commit 664b38a227

View file

@ -55,6 +55,7 @@ class Auth(object):
key = self.get_priv_key()
tmp_pub = tempfile.mktemp()
key.save_pub_key(tmp_pub)
payload['cmd'] = 'auth'
payload['hostname'] = self.opts['hostname']
payload['pub'] = open(tmp_pub, 'r').read()
return payload