daemon: updates to change hostname settings to replace _ to - due to _ being an invalid character
This commit is contained in:
parent
9991942e7b
commit
9c265ab283
2 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,7 @@ class LinuxNetClient:
|
|||
:param name: name for hostname
|
||||
:return: nothing
|
||||
"""
|
||||
name = name.replace("_", "-")
|
||||
self.run(f"hostname {name}")
|
||||
|
||||
def create_route(self, route: str, device: str) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue