diff options
author | Flavio Castelli <fcastelli@suse.com> | 2016-09-08 14:21:50 +0200 |
---|---|---|
committer | Flavio Castelli <fcastelli@suse.com> | 2016-09-08 14:21:50 +0200 |
commit | fdd13354ef6a19b0d75cb9f8e395239a2af86317 (patch) | |
tree | 02cebb419ea7d9b4dfe0cff327ae5ae661f8c570 /libvirt/resource_cloud_init.go | |
parent | 58c2e48a2848750f698ce1aa7f299e182246e8af (diff) | |
download | terraform-provider-libvirt-fdd13354ef6a19b0d75cb9f8e395239a2af86317.tar terraform-provider-libvirt-fdd13354ef6a19b0d75cb9f8e395239a2af86317.tar.gz |
Make cloudinit generation more resilent
Invoke the external `genisofs` program in a safer way.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Diffstat (limited to 'libvirt/resource_cloud_init.go')
-rw-r--r-- | libvirt/resource_cloud_init.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libvirt/resource_cloud_init.go b/libvirt/resource_cloud_init.go index 53a13a7b..23f72976 100644 --- a/libvirt/resource_cloud_init.go +++ b/libvirt/resource_cloud_init.go @@ -38,6 +38,7 @@ func resourceCloudInit() *schema.Resource { } func resourceCloudInitCreate(d *schema.ResourceData, meta interface{}) error { + log.Printf("[DEBUG] creating cloudinit") virConn := meta.(*Client).libvirt if virConn == nil { return fmt.Errorf("The libvirt connection was nil.") |