def do_version_list(cs, args):
 result = cs.versions.list()
 if ('min_version' in dir(result[0])):
  columns = ['Id', 'Status', 'Updated', 'Min Version', 'Version']
 else:
  columns = ['Id', 'Status', 'Updated']
 print(_('Client supported API versions:'))
 print((_('Minimum version %(v)s') % {'v': novaclient.API_MIN_VERSION.get_string()}))
 print((_('Maximum version %(v)s') % {'v': novaclient.API_MAX_VERSION.get_string()}))
 print(_('\nServer supported API versions:'))
 utils.print_list(result, columns)

def do_version_list ( cs , args ) : result = cs . versions . list ( ) if ( 'min_version' in dir ( result [ 0 ] ) ) : columns = [ 'Id' , 'Status' , 'Updated' , 'Min Version' , 'Version' ] else : columns = [ 'Id' , 'Status' , 'Updated' ] print ( _ ( 'Client supported API versions:' ) ) print ( ( _ ( 'Minimum version %(v)s' ) % { 'v' : novaclient . API_MIN_VERSION . get_string ( ) } ) ) print ( ( _ ( 'Maximum version %(v)s' ) % { 'v' : novaclient . API_MAX_VERSION . get_string ( ) } ) ) print ( _ ( '\nServer supported API versions:' ) ) utils . print_list ( result , columns )
list all api versions .