MCPcopy Create free account
hub / github.com/canonical/cloud-init / main

Function main

cloudinit/sources/DataSourceVMware.py:1265–1282  ·  view source on GitHub ↗

Executed when this file is used as a program.

()

Source from the content-addressed store, hash-verified

1263
1264
1265def main():
1266 """
1267 Executed when this file is used as a program.
1268 """
1269 try:
1270 loggers.setup_basic_logging()
1271 except Exception:
1272 pass
1273 metadata = {
1274 WAIT_ON_NETWORK: {
1275 WAIT_ON_NETWORK_IPV4: True,
1276 WAIT_ON_NETWORK_IPV6: False,
1277 },
1278 "network": {"config": {"dhcp": True}},
1279 }
1280 host_info = wait_on_network(metadata)
1281 metadata = util.mergemanydict([metadata, host_info])
1282 print(atomic_helper.json_dumps(metadata))
1283
1284
1285if __name__ == "__main__":

Callers 1

Calls 1

wait_on_networkFunction · 0.85

Tested by

no test coverage detected