def show_disk(name, call=None):
 if (call != 'action'):
  raise SaltCloudSystemExit('The show_disks action must be called with -a or --action.')
 ret = {}
 params = {'Action': 'DescribeInstanceDisks', 'InstanceId': name}
 items = query(params=params)
 for disk in items['Disks']['Disk']:
  ret[disk['DiskId']] = {}
  for item in disk:
   ret[disk['DiskId']][item] = str(disk[item])
 return ret

def show_disk ( name , call = None ) : if ( call != 'action' ) : raise SaltCloudSystemExit ( 'The show_disks action must be called with -a or --action.' ) ret = { } params = { 'Action' : 'DescribeInstanceDisks' , 'InstanceId' : name } items = query ( params = params ) for disk in items [ 'Disks' ] [ 'Disk' ] : ret [ disk [ 'DiskId' ] ] = { } for item in disk : ret [ disk [ 'DiskId' ] ] [ item ] = str ( disk [ item ] ) return ret
show the details of an existing disk .