Add dummy methods to facilitate future encryption scemes

This commit is contained in:
Thomas S Hatch 2011-03-08 18:12:44 -07:00
parent 73cffc9c4b
commit 6527f897be
2 changed files with 14 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class LocalClient(object):
Execute a salt command and return.
'''
pub_data = self.pub(tgt, fun, arg)
return get_returns(pub_data['jid'], pub_data['minions'], timeout)
return self.get_returns(pub_data['jid'], pub_data['minions'], timeout)
def get_returns(self, jid, minions, timeout=5):
'''

View File

@ -100,6 +100,19 @@ class Minion(object):
ret['jid'] = data['jid']
return ret
def _handle_pub(self, load):
'''
Handle public key payloads
'''
pass
def _handle_clear(self, load):
'''
Handle unencrypted transmisions
'''
pass
def _return_pub(self, ret):
'''
Returnt the data from the executed command to the master server