mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Add client side to ext nodes
This commit is contained in:
parent
d4971abf2e
commit
86fa786080
@ -926,3 +926,15 @@ class FileClient(object):
|
|||||||
payload['load'] = self.auth.crypticle.dumps(load)
|
payload['load'] = self.auth.crypticle.dumps(load)
|
||||||
self.socket.send(self.serial.dumps(payload))
|
self.socket.send(self.serial.dumps(payload))
|
||||||
return self.auth.crypticle.loads(self.serial.loads(self.socket.recv()))
|
return self.auth.crypticle.loads(self.serial.loads(self.socket.recv()))
|
||||||
|
|
||||||
|
def ext_nodes(self):
|
||||||
|
'''
|
||||||
|
Return the metadata derived from the external nodes system on the
|
||||||
|
master.
|
||||||
|
'''
|
||||||
|
payload = {'enc': 'aes'}
|
||||||
|
load = {'cmd': '_enc_nodes',
|
||||||
|
'id': self.opts['id']}
|
||||||
|
payload['load'] = self.auth.crypticle.dumps(load)
|
||||||
|
self.socket.send(self.serial.dumps(payload))
|
||||||
|
return self.auth.crypticle.loads(self.serial.loads(self.socket.recv()))
|
||||||
|
Loading…
Reference in New Issue
Block a user