Azure calls userdata CustomData. Get the variable, but we don't use it yet.

This commit is contained in:
Reyk Floeter 2017-06-30 21:34:12 +02:00
parent 29193e306f
commit 0ba8b74dcd
2 changed files with 8 additions and 2 deletions

View File

@ -765,6 +765,14 @@ azure_getovfenv(struct system_config *sc)
}
}
if ((xe = xml_findl(&xp->xe_head, "CustomData", NULL)) != NULL) {
if ((sc->sc_userdata =
get_string(xe->xe_data, xe->xe_datalen)) == NULL) {
log_debug("%s: userdata failed", __func__);
goto done;
}
}
if ((fd = open(sc->sc_ovfenv, O_WRONLY|O_CREAT|O_TRUNC, 0600)) == -1 ||
(fp = fdopen(fd, "w")) == NULL) {
log_debug("%s: failed to open %s", __func__, sc->sc_ovfenv);

View File

@ -81,8 +81,6 @@ cloudinit_get(struct system_config *sc, const char *path, enum strtype type)
str = get_word(g->bodypart, g->bodypartsz);
break;
}
log_debug("%s: '%s'", __func__, str);
}
http_get_free(g);