We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 933ab8a commit d3c2eb8Copy full SHA for d3c2eb8
riocli/apply/filters.py
@@ -20,6 +20,7 @@
20
21
from riocli.config import new_client
22
from riocli.device.util import find_device_guid
23
+from riocli.exceptions import DeviceNotFound
24
25
26
def getenv(default: str, env_var: str) -> str:
@@ -77,6 +78,11 @@ def get_device_ip_interfaces(device_name: str) -> dict[str, list[str]]:
77
78
device_id = find_device_guid(client, device_name)
79
80
device = client.get_device(device_id)
81
+
82
+ if device["status"] == "REGISTERED":
83
+ raise DeviceNotFound(
84
+ f'Cannot retrieve IP interfaces: device "{device["name"]}" is in REGISTERED state.'
85
+ )
86
try:
87
# Poll for 3 minutes.
88
device.poll_till_ready(retry_count=18, sleep_interval=10)
0 commit comments