Browse Source

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

fix-cms
Reyk Floeter 6 years ago
parent
commit
0ba8b74dcd
  1. 8
      agent/azure.c
  2. 2
      agent/cloudinit.c

8
agent/azure.c

@ -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);

2
agent/cloudinit.c

@ -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);

Loading…
Cancel
Save