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 ec14ef8Copy full SHA for ec14ef8
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,9 @@ 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"] != "ONLINE":
83
+ raise DeviceNotFound("Device is not in online state")
84
try:
85
# Poll for 3 minutes.
86
device.poll_till_ready(retry_count=18, sleep_interval=10)
0 commit comments