cleanup code
This commit is contained in:
parent
cce6c42c87
commit
8ff20f3283
@ -28,7 +28,7 @@ import sys
|
|||||||
import getopt
|
import getopt
|
||||||
import pprint
|
import pprint
|
||||||
import json
|
import json
|
||||||
#from requests.packages.urllib3.exceptions import InsecureRequestWarning
|
from requests.packages.urllib3.exceptions import InsecureRequestWarning
|
||||||
|
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
@ -125,6 +125,7 @@ def get_storage_ldevs():
|
|||||||
url = "https://%(address)s/ConfigurationManager/v1/objects/ldevs" % args_dict
|
url = "https://%(address)s/ConfigurationManager/v1/objects/ldevs" % args_dict
|
||||||
return query(url)
|
return query(url)
|
||||||
|
|
||||||
|
|
||||||
def get_storage_parity_groups():
|
def get_storage_parity_groups():
|
||||||
if opt_demo:
|
if opt_demo:
|
||||||
raw_json = storage_parity_groups
|
raw_json = storage_parity_groups
|
||||||
@ -166,11 +167,11 @@ def process_storage_hardware_status():
|
|||||||
for channelboard in channelsboards:
|
for channelboard in channelsboards:
|
||||||
output("%s\t%s\t%s" % (channelboard["location"], channelboard["status"], channelboard["type"]))
|
output("%s\t%s\t%s" % (channelboard["location"], channelboard["status"], channelboard["type"]))
|
||||||
|
|
||||||
cacheFlashMemories=full_data["cacheFlashMemories"]
|
cacheflashmemories = full_data["cacheFlashMemories"]
|
||||||
output("<<<hitachivsp_cache_flash_memories:sep(9)>>>")
|
output("<<<hitachivsp_cache_flash_memories:sep(9)>>>")
|
||||||
output("location\tstatus\ttype")
|
output("location\tstatus\ttype")
|
||||||
for cacheFlashMemory in cacheFlashMemories:
|
for cacheflashmemory in cacheflashmemories:
|
||||||
output("%s\t%s\t%s" % (cacheFlashMemory["location"], cacheFlashMemory["status"], cacheFlashMemory["type"]))
|
output("%s\t%s\t%s" % (cacheflashmemory["location"], cacheflashmemory["status"], cacheflashmemory["type"]))
|
||||||
|
|
||||||
disk_boards = full_data["dkbs"]
|
disk_boards = full_data["dkbs"]
|
||||||
output("<<<hitachivsp_disk_boards:sep(9)>>>")
|
output("<<<hitachivsp_disk_boards:sep(9)>>>")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user