def do_show(args): ID = args.ID url = _get_url(args) auth_user, auth_password = _get_auth_info(args) client = TransferClient(base_url=url, keyfile=None) data = client.show(ID, auth_user=auth_user, auth_password=auth_password) if data is not None: print(data) else: raise TransferException("Asset not found: {}".format(shipmentID))
def do_show(args): ID = args.ID url = _get_url(args) auth_user, auth_password = _get_auth_info(args) client = TransferClient(base_url=url, keyfile=None) data = client.show(ID, auth_user=auth_user, auth_password=auth_password) if data is not None: print('-'*50) for x in data: print(x) print('x'*10) print('-'*50) else: raise TransferException("Assets not found!")