#NEWLINE# def avail_sizes( call = None ) : #NEWLINE# #INDENT# '\n    get list of available packages\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt-cloud --list-sizes\n    ' #NEWLINE# if ( items == 'action' ) : #NEWLINE# #INDENT# raise SaltCloudSystemExit ( 'The avail_sizes function must be called with -f or --function, or with the --list-sizes option' ) #NEWLINE# #UNINDENT# ( rcode , items ) = query ( command = '/my/packages' ) #NEWLINE# if ( rcode not in VALID_RESPONSE_CODES ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return key_list ( items = items )