diff --git a/CHANGELOG.md b/CHANGELOG.md index 4adfcbbc..0e0b32ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Bug Fixes * pins rapyuta-io version to v1.17.1 ([2cb936c](https://github.com/rapyuta-robotics/rapyuta-io-cli/commit/2cb936ce2be50f772fb9b304356b7b32446a21ae)) +* **device:** add device report feature to cli. ## [9.0.3](https://github.com/rapyuta-robotics/rapyuta-io-cli/compare/v9.0.2...v9.0.3) (2024-09-26) diff --git a/riocli/device/util.py b/riocli/device/util.py index 04015f6e..172447e8 100644 --- a/riocli/device/util.py +++ b/riocli/device/util.py @@ -11,12 +11,12 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import datetime import functools import json import re import time import typing +from datetime import datetime, timedelta from pathlib import Path import click @@ -102,7 +102,7 @@ def generate_shared_url(device_guid: str, request_id: str, expiry: int, spinner= try: client = new_client() device = client.get_device(device_id=device_guid) - expiry_time = datetime.now() + datetime.timedelta(days=expiry) + expiry_time = datetime.now() + timedelta(days=expiry) # Create the shared URL public_url = device.create_shared_url(