diff options
author | Flavio Castelli <fcastelli@suse.com> | 2017-05-26 15:46:22 +0200 |
---|---|---|
committer | Flavio Castelli <fcastelli@suse.com> | 2017-05-26 15:48:06 +0200 |
commit | 8aab6118f495e72905a6961672156d49221679aa (patch) | |
tree | 27f90ebde66c08b43fbd49ed86672abaf8949cea /libvirt/resource_libvirt_domain.go | |
parent | 686015805f14b93e7ef4d6d5a5655ab2b8154b79 (diff) | |
download | terraform-provider-libvirt-8aab6118f495e72905a6961672156d49221679aa.tar terraform-provider-libvirt-8aab6118f495e72905a6961672156d49221679aa.tar.gz |
Replace cryptic error with better one
When the remote source was not found the check for its size failed
because the size was empty, causing the to integer conversion to fail.
The new code ensures the remote file exists before trying to convert
its size.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Diffstat (limited to 'libvirt/resource_libvirt_domain.go')
0 files changed, 0 insertions, 0 deletions