selfcheck.py: don't check ROS_HOSTNAME not on Clover image

This commit is contained in:
Oleg Kalachev
2022-06-10 17:33:21 +03:00
parent 4179beca6d
commit 4cdf073c1d

View File

@@ -726,6 +726,10 @@ def check_preflight_status():
@check('Network')
def check_network():
if not os.path.exists('/etc/clover_version'):
# TODO:
return # Don't check not on Clover's image
ros_hostname = os.environ.get('ROS_HOSTNAME', '').strip()
if not ros_hostname: