selfcheck.py: don’t fall when ROS_HOSTNAME is not set

This commit is contained in:
Oleg Kalachev
2020-06-10 22:40:28 +03:00
parent 66ecbb4d09
commit 3682e253a7

View File

@@ -701,7 +701,7 @@ def check_preflight_status():
@check('Network')
def check_network():
ros_hostname = os.environ.get('ROS_HOSTNAME').strip()
ros_hostname = os.environ.get('ROS_HOSTNAME', '').strip()
if not ros_hostname:
failure('no ROS_HOSTNAME is set')