Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2. def _get_configuration(self):
  3. """
  4. Get config
  5. :return: json config
  6. """
  7. e = Configuration.get(str(self.backObj.abm_cluster.config_location), True)
  8. config = RawConfigParser()
  9. config.readfp(StringIO(e))
  10. json_config = {}
  11. for section in config.sections():
  12. json_config[section] = {}
  13. for name in config.options(section):
  14. json_config[section][name] = config.get(section, name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement