Skip to content

Instantly share code, notes, and snippets.

View 55abhilash's full-sized avatar
🏠
Working from home

Abhilash KP 55abhilash

🏠
Working from home
  • Pune, India
View GitHub Profile
@55abhilash
55abhilash / salt-Local-Client.py
Created January 10, 2017 03:27
salt python client api localclient.
wheel.cmd('key.accept', machine_orig)
client = salt.client.LocalClient()
os_info = client.cmd(machine, 'grains.item',['os'])[machine]['os'] + ' ' + client.cmd(machine, 'grains.item',['osrelease'])[machine]['osrelease'] + ' ' + client.cmd(machine, 'grains.item', ['oscodename'])[machine]['oscodename']