Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getData():
- """Gets patchgroup-data from the salt-master
- Args:
- None
- Returns:
- output: The data retrieved, as json
- """
- # Using this as a test for now
- minions = u"*"
- # Set up the local client
- local = salt.client.LocalClient()
- # This gets the data from the minions
- output = local.cmd(minions, 'grains.item', ['patch_group'])
- return output
- #}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement