(self, config_file="", log_level=None)
| 64 | ) |
| 65 | |
| 66 | def __init__(self, config_file="", log_level=None): |
| 67 | if config_file != "": |
| 68 | self.azure_config_file = config_file |
| 69 | |
| 70 | self._logger = self._log() |
| 71 | if log_level is not None: |
| 72 | self._logger.setLevel(log_level) |
| 73 | |
| 74 | config = configparser.ConfigParser() |
| 75 | list = config.read(self.azure_config_file) |
| 76 | if len(list) == 0: |
| 77 | self._logger.error("Error: Could not find the config file") |
| 78 | exit(1) |
| 79 | |
| 80 | self._init_azure(config) |
| 81 | |
| 82 | def get_dns_client(self): |
| 83 | """ |
nothing calls this directly
no test coverage detected