Merge pull request #923 from winston-yallow/remove-sideeffect-from-systemd-registration

Don't create pods/container when registering systemd unit
This commit is contained in:
Povilas Kanapickas 2024-05-01 21:05:13 +03:00 committed by GitHub
commit a73dac2e39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2122,8 +2122,6 @@ async def compose_systemd(compose, args):
f.write(f"{k}={v}\n")
log.debug("writing [%s]: done.", fn)
log.info("\n\ncreating the pod without starting it: ...\n\n")
process = await asyncio.create_subprocess_exec(script, ["up", "--no-start"])
log.info("\nfinal exit code is %d", process)
username = getpass.getuser()
print(
f"""