Fix some bad output

This commit is contained in:
Joshua Boniface 2019-12-30 14:35:44 -05:00
parent 0ced9b2777
commit d6bd616b31
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ def vm_info(config, vm):
) )
if config['debug']: if config['debug']:
print('API endpoint: POST {}'.format(request_uri)) print('API endpoint: GET {}'.format(request_uri))
print('Response code: {}'.format(response.status_code)) print('Response code: {}'.format(response.status_code))
print('Response headers: {}'.format(response.headers)) print('Response headers: {}'.format(response.headers))
@ -71,7 +71,7 @@ def vm_info(config, vm):
def vm_list(config, limit, target_node, target_state): def vm_list(config, limit, target_node, target_state):
""" """
Get list information about nodes (limited by {limit}, {target_node}, or {target_state}) Get list information about VMs (limited by {limit}, {target_node}, or {target_state})
API endpoint: GET /api/v1/vm API endpoint: GET /api/v1/vm
API arguments: limit={limit}, node={target_node}, state={target_state} API arguments: limit={limit}, node={target_node}, state={target_state}
@ -92,7 +92,7 @@ def vm_list(config, limit, target_node, target_state):
) )
if config['debug']: if config['debug']:
print('API endpoint: POST {}'.format(request_uri)) print('API endpoint: GET {}'.format(request_uri))
print('Response code: {}'.format(response.status_code)) print('Response code: {}'.format(response.status_code))
print('Response headers: {}'.format(response.headers)) print('Response headers: {}'.format(response.headers))