sparse-intern-71089
09/15/2020, 4:51 PMincalculable-dream-27508
09/15/2020, 4:58 PMincalculable-dream-27508
09/15/2020, 5:29 PMfor srv in INSTANCES:
ips.append(INSTANCES[srv].access_ip_v4.apply)
logging.debug("ips: %s", ips)
hostnames.append(INSTANCES[srv].name.apply)
logging.debug("hostnames: %s", hostnames)
host_dict = pulumi.Output.all(INSTANCES[srv].name,
INSTANCES[srv].access_ip_v4).apply(
lambda args: json.dumps([{
args[0]: args[1]
}]))
logging.debug("host_dict: %s", host_dict)
exported.update(host_dict)
results in
DEBUG:root:ips: [<bound method Output.apply of <pulumi.output.Output object at 0x7293f553fa90>>]
DEBUG:root:hostnames: [<bound method Output.apply of <pulumi.output.Output object at 0x7293f56744f0>>]
DEBUG:root:host_dict: <pulumi.output.Output object at 0x7293f5482f70>
incalculable-dream-27508
09/16/2020, 7:54 AMincalculable-dream-27508
09/17/2020, 12:13 PM