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