diff --git a/riocli/device/report.py b/riocli/device/report.py index d6c73a1f..483aa7c4 100644 --- a/riocli/device/report.py +++ b/riocli/device/report.py @@ -15,7 +15,7 @@ from click_help_colors import HelpColorsCommand from riocli.constants import Colors, Symbols -from riocli.device.util import name_to_guid, shared_url_debug_logs, upload_debug_logs +from riocli.device.util import name_to_guid, generate_shared_url, upload_debug_logs from riocli.utils.spinner import with_spinner @@ -89,7 +89,7 @@ def report_device( if share: spinner.text = click.style("Creating shared URL...", fg=Colors.YELLOW) - public_url = shared_url_debug_logs( + public_url = generate_shared_url( device_guid, response["response"]["data"]["request_uuid"], expiry ) click.secho(public_url.url, fg=Colors.GREEN) diff --git a/riocli/device/util.py b/riocli/device/util.py index 5cd6f280..04015f6e 100644 --- a/riocli/device/util.py +++ b/riocli/device/util.py @@ -98,7 +98,7 @@ def upload_debug_logs(device_guid: str) -> dict: return response.json() -def shared_url_debug_logs(device_guid: str, request_id: str, expiry: int, spinner=None): +def generate_shared_url(device_guid: str, request_id: str, expiry: int, spinner=None): try: client = new_client() device = client.get_device(device_id=device_guid)