diff options
author | Flavio Castelli <fcastelli@suse.com> | 2016-10-08 22:23:07 +0200 |
---|---|---|
committer | Flavio Castelli <fcastelli@suse.com> | 2016-10-08 22:23:07 +0200 |
commit | 672e9c8066997d3ef781df010baef928673c3b6e (patch) | |
tree | e10d4c2ef05adc84bbe8903e62f6383ea5b6e50b /libvirt/cloudinit_def.go | |
parent | fdd13354ef6a19b0d75cb9f8e395239a2af86317 (diff) | |
download | terraform-provider-libvirt-672e9c8066997d3ef781df010baef928673c3b6e.tar terraform-provider-libvirt-672e9c8066997d3ef781df010baef928673c3b6e.tar.gz |
Make the hostname field of cloudinit optional
This fixes issue #64
Diffstat (limited to 'libvirt/cloudinit_def.go')
-rw-r--r-- | libvirt/cloudinit_def.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt/cloudinit_def.go b/libvirt/cloudinit_def.go index 1712e067..da7e5f69 100644 --- a/libvirt/cloudinit_def.go +++ b/libvirt/cloudinit_def.go @@ -26,7 +26,7 @@ type defCloudInit struct { Name string PoolName string Metadata struct { - LocalHostname string `yaml:"local-hostname"` + LocalHostname string `yaml:"local-hostname,omitempty"` InstanceID string `yaml:"instance-id"` } UserData struct { |