@@ -407,6 +407,34 @@ const exampleStateFile = `
407407 "tags.Role": "worker"
408408 }
409409 }
410+ },
411+ "hcloud_server.eightteen": {
412+ "type": "hcloud_server",
413+ "depends_on": [],
414+ "primary": {
415+ "id": "42",
416+ "attributes": {
417+ "backup_window": "",
418+ "backups": "false",
419+ "datacenter": "fsn1-dc14",
420+ "id": "42",
421+ "image": "1",
422+ "ipv4_address": "10.0.0.18",
423+ "keep_disk": "false",
424+ "labels.%": "1",
425+ "labels.testlabel": "hcloud_test",
426+ "location": "fsn1",
427+ "name": "seventeen",
428+ "server_type": "cx11",
429+ "ssh_keys.#": "1",
430+ "ssh_keys.0": "1337",
431+ "status": "running"
432+ },
433+ "meta": {},
434+ "tainted": false
435+ },
436+ "deposed": [],
437+ "provider": "provider.hcloud"
410438 }
411439 }
412440 }
@@ -423,6 +451,7 @@ const expectedListOutput = `
423451 "10.0.0.11",
424452 "10.0.0.13",
425453 "10.0.0.16",
454+ "10.0.0.18",
426455 "10.0.0.7",
427456 "10.0.0.8",
428457 "10.0.0.9",
@@ -461,6 +490,7 @@ const expectedListOutput = `
461490 "fourteen": ["192.168.102.14"],
462491 "sixteen": ["10.0.0.16"],
463492 "seventeen": ["50.0.0.17"],
493+ "eightteen": ["10.0.0.18"],
464494
465495 "one.0": ["10.0.0.1"],
466496 "dup.0": ["10.0.0.1"],
@@ -480,13 +510,15 @@ const expectedListOutput = `
480510 "fourteen.0": ["192.168.102.14"],
481511 "sixteen.0": ["10.0.0.16"],
482512 "seventeen.0": ["50.0.0.17"],
513+ "eightteen.0": ["10.0.0.18"],
483514
484515 "type_aws_instance": ["10.0.0.1", "10.0.1.1", "50.0.0.1"],
485516 "type_digitalocean_droplet": ["192.168.0.3"],
486517 "type_cloudstack_instance": ["10.2.1.5"],
487518 "type_vsphere_virtual_machine": ["10.20.30.40", "10.20.30.50"],
488519 "type_openstack_compute_instance_v2": ["10.120.0.226"],
489520 "type_profitbricks_server": ["10.0.0.16"],
521+ "type_hcloud_server": ["10.0.0.18"],
490522 "type_softlayer_virtual_guest": ["10.0.0.7"],
491523 "type_exoscale_compute": ["10.0.0.9"],
492524 "type_google_compute_instance": ["10.0.0.8"],
@@ -503,6 +535,7 @@ const expectedListOutput = `
503535 "webserver": ["192.168.0.3"],
504536 "staging": ["192.168.0.3"],
505537 "status_superserver": ["10.120.0.226"],
538+ "testlabel_hcloud_test": ["10.0.0.18"],
506539 "database": ["10.0.0.8"],
507540 "scw_test": ["10.0.0.11"]
508541}
@@ -514,6 +547,7 @@ const expectedInventoryOutput = `[all]
51454710.0.0.11
51554810.0.0.13
51654910.0.0.16
550+ 10.0.0.18
51755110.0.0.7
51855210.0.0.8
51955310.0.0.9
@@ -548,6 +582,12 @@ olddatacenter="\u003c0.7_format"
548582[eight.0]
54958310.0.0.8
550584
585+ [eightteen]
586+ 10.0.0.18
587+
588+ [eightteen.0]
589+ 10.0.0.18
590+
551591[eleven]
55259210.0.0.11
553593
@@ -642,6 +682,9 @@ olddatacenter="\u003c0.7_format"
642682[testTag1]
64368310.20.30.50
644684
685+ [testlabel_hcloud_test]
686+ 10.0.0.18
687+
645688[thirteen]
64668910.0.0.13
647690
@@ -686,6 +729,9 @@ olddatacenter="\u003c0.7_format"
686729[type_google_compute_instance]
68773010.0.0.8
688731
732+ [type_hcloud_server]
733+ 10.0.0.18
734+
689735[type_libvirt_domain]
690736192.168.102.14
691737
0 commit comments