Advertisement
Guest User

Untitled

a guest
Sep 7th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. def getData():
  2.         """Gets patchgroup-data from the salt-master
  3.        Args:
  4.                None
  5.        Returns:
  6.                output: The data retrieved, as json
  7.        """
  8.         # Using this as a test for now
  9.         minions = u"*"
  10.         # Set up the local client
  11.         local = salt.client.LocalClient()
  12.         # This gets the data from the minions
  13.         output = local.cmd(minions, 'grains.item', ['patch_group'])
  14.         return output
  15. #}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement