We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3413f8 commit 7826de0Copy full SHA for 7826de0
src/manage_iocs/commands.py
@@ -217,8 +217,11 @@ def install(ioc: str):
217
218
service_file = utils.SYSTEMD_SERVICE_PATH / f"softioc-{ioc}.service"
219
ioc_config = utils.find_iocs()[ioc]
220
+ base_hostname = socket.gethostname()
221
+ if "." in base_hostname:
222
+ base_hostname = base_hostname.split(".")[0]
223
- if socket.gethostname() != ioc_config.host and ioc_config.host != "localhost":
224
+ if ioc_config.host not in [base_hostname, "localhost", socket.gethostname()]:
225
raise RuntimeError(
226
f"Cannot install IOC '{ioc}' on this host; configured host is '{ioc_config.host}'!"
227
)
0 commit comments