(self, path, silent=True)
| 605 | ) |
| 606 | |
| 607 | def _load_config_from_file(self, path, silent=True): |
| 608 | config_path = os.path.expandvars(os.path.expanduser(path)) |
| 609 | try: |
| 610 | return Config.load(config_path, drop_extra_fields=False) |
| 611 | except Exception as exp: # noqa |
| 612 | if not silent: |
| 613 | raise exp |
| 614 | |
| 615 | def _parse_cluster_type(self): |
| 616 | # get the cluster type after connecting |