Attempt to bring up connection after provision for NetworkManager

This commit is contained in:
Lauri Võsandi 2021-04-23 15:22:55 +03:00
parent 9db70b1a01
commit 16d1e6f331

View File

@ -511,6 +511,7 @@ def certidude_enroll(fork, no_wait, kerberos):
click.echo("Created %s" % nm_config_path)
if os.path.exists("/run/NetworkManager"):
os.system("nmcli con reload")
os.system("nmcli con up %s" % uuid)
continue
@ -549,6 +550,7 @@ def certidude_enroll(fork, no_wait, kerberos):
click.echo("Created %s" % fh.name)
if os.path.exists("/run/NetworkManager"):
os.system("nmcli con reload")
os.system("nmcli con up %s" % uuid)
continue
click.echo("Unknown service: %s" % service_config.get(endpoint, "service"))