Configure Azure -n, but don't apply confiugration
This commit is contained in:
parent
cdf3317965
commit
eb9d5b440c
1 changed files with 9 additions and 13 deletions
|
@ -77,12 +77,6 @@ azure(struct system_config *sc)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sc->sc_dryrun) {
|
|
||||||
/* Return after backing up the ovf-env.xml file */
|
|
||||||
ret = 0;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (azure_getendpoint(sc) != 0) {
|
if (azure_getendpoint(sc) != 0) {
|
||||||
log_warnx("failed to get endpoint");
|
log_warnx("failed to get endpoint");
|
||||||
goto done;
|
goto done;
|
||||||
|
@ -98,14 +92,16 @@ azure(struct system_config *sc)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (azure_keys(sc) != 0) {
|
if (!sc->sc_dryrun) {
|
||||||
log_warnx("failed to get transport keys");
|
if (azure_keys(sc) != 0) {
|
||||||
goto done;
|
log_warnx("failed to get transport keys");
|
||||||
}
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
if (azure_certificates(sc) != 0) {
|
if (azure_certificates(sc) != 0) {
|
||||||
log_warnx("failed to get certificates");
|
log_warnx("failed to get certificates");
|
||||||
goto done;
|
goto done;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (azure_reporthealth(sc, "Ready") != 0) {
|
if (azure_reporthealth(sc, "Ready") != 0) {
|
||||||
|
|
Loading…
Reference in a new issue