Skip to content

Commit 2b72599

Browse files
authored
make hosts all lowercase
1 parent 320ec80 commit 2b72599

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

visual_behavior/devices.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
'localhost': 'localhost'
5151
}
5252

53+
RIG_NAME = {k.lower(): v for k, v in iteritems(RIG_NAME))
54+
5355
COMPUTER_NAME = dict((v, k) for k, v in iteritems(RIG_NAME))
5456

5557

@@ -71,7 +73,7 @@ def get_rig_id(in_val, input_type='computer_name'):
7173
specifies whether `in_val` is a computer name or rig_id
7274
'''
7375
if input_type == 'computer_name' and in_val in RIG_NAME.keys():
74-
return RIG_NAME[in_val]
76+
return RIG_NAME[in_val.lower()]
7577
elif input_type == 'rig_id' and in_val in COMPUTER_NAME.keys():
7678
return COMPUTER_NAME[in_val]
7779
else:

0 commit comments

Comments
 (0)