ret = log_obj.createLogs("Clean_Infra", log) if ret != FAILED: log_folder_path = log_obj.getLogFolderPath() tc_run_logger = log_obj.getLogger() else: print "\n=== Log Creation Failed. Please Check ===" exit(1) obj_tc_client = CSTestClient(cfg.mgtSvr[0], cfg.dbSvr, logger=tc_run_logger) if obj_tc_client and obj_tc_client.createTestClient() == FAILED: print "\n=== TestClient Creation Failed ===" exit(1) if (options.input) and (os.path.isfile(options.input)): apiClient = obj_tc_client.getApiClient() tmp_dict = {} zones = Zone.list(apiClient) if zones: for zone in zones: print "zone name={}, id={}".format(zone.name, zone.id) if zone.allocationstate == 'Enabled': print "Disable zone" zoneCmd = updateZone.updateZoneCmd() zoneCmd.id = zone.id zoneCmd.allocationstate = 'Disabled' apiClient.updateZone(zoneCmd) ssvms = list_ssvms(apiClient) if ssvms: