Load configuration from the default config file. Returns: Dictionary with configuration values (url, auth_user, auth_password)
()
| 60 | |
| 61 | |
| 62 | def load_config() -> Dict[str, Any]: |
| 63 | """Load configuration from the default config file. |
| 64 | |
| 65 | Returns: |
| 66 | Dictionary with configuration values (url, auth_user, auth_password) |
| 67 | |
| 68 | """ |
| 69 | if not os.path.exists(DEFAULT_CONFIG_PATH): |
| 70 | return {} |
| 71 | |
| 72 | try: |
| 73 | with open(DEFAULT_CONFIG_PATH, "r") as f: |
| 74 | return json.load(f) |
| 75 | except (json.JSONDecodeError, FileNotFoundError): |
| 76 | return {} |
| 77 | |
| 78 | |
| 79 | def discover_vmm_instances() -> List[Dict[str, Any]]: |
no test coverage detected