(file)
| 889 | |
| 890 | |
| 891 | def getSetupConfig(file): |
| 892 | try: |
| 893 | config = cloudstackConfiguration() |
| 894 | configLines = [] |
| 895 | with open(file, 'r') as fp: |
| 896 | for line in fp: |
| 897 | ws = line.strip() |
| 898 | if not ws.startswith("#"): |
| 899 | configLines.append(ws) |
| 900 | config = json.loads("\n".join(configLines)) |
| 901 | return jsonHelper.jsonLoader(config) |
| 902 | except Exception as e: |
| 903 | print("\nException Occurred under getSetupConfig %s" % \ |
| 904 | GetDetailExceptionInfo(e)) |
| 905 | |
| 906 | if __name__ == "__main__": |
| 907 | parser = OptionParser() |
no test coverage detected