コード例 #1
0
ファイル: api_service.py プロジェクト: wo083053253/cbtool
 def cldparse(self, definitions):
     attributes, unused_definitions = parse_cld_defs_file(definitions)
     clouds = get_available_clouds(attributes, return_all_options=True)
     return {
         "msg": "Success",
         "status": 0,
         "result": {
             "clouds": clouds,
             "attributes": attributes
         }
     }
コード例 #2
0
ファイル: api_service.py プロジェクト: ibmcb/cbtool
 def cldparse(self, definitions):
     attributes, unused_definitions = parse_cld_defs_file(definitions)
     clouds = get_available_clouds(attributes, return_all_options = True)
     return {"msg" : "Success", "status" : 0, "result": { "clouds": clouds, "attributes" : attributes} }