Skip to content

Commit f767da4

Browse files
committed
Write the updated hostname to the turtlebot4/system file
1 parent 9373531 commit f767da4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

turtlebot4_setup/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,12 @@ def write_system(self):
214214
system = f.readlines()
215215
for i, line in enumerate(system):
216216
is_conf = False
217-
for k in [SystemOptions.MODEL, SystemOptions.VERSION, SystemOptions.ROS]:
217+
for k in [
218+
SystemOptions.MODEL,
219+
SystemOptions.VERSION,
220+
SystemOptions.ROS,
221+
SystemOptions.HOSTNAME,
222+
]:
218223
if k in line:
219224
system[i] = f'{k}:{self.system_conf[k]}\n'
220225
is_conf = True

0 commit comments

Comments
 (0)