Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def _get_configuration(self):
- """
- Get config
- :return: json config
- """
- e = Configuration.get(str(self.backObj.abm_cluster.config_location), True)
- config = RawConfigParser()
- config.readfp(StringIO(e))
- json_config = {}
- for section in config.sections():
- json_config[section] = {}
- for name in config.options(section):
- json_config[section][name] = config.get(section, name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement