From 72fa5475576d38e274b7d150d6ce741f6c710558 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Thu, 25 Dec 2014 22:58:17 +0100 Subject: [PATCH] Making things consistent throughout the provider --- .../providers/cloudstack/resource_cloudstack_port_forward.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/cloudstack/resource_cloudstack_port_forward.go b/builtin/providers/cloudstack/resource_cloudstack_port_forward.go index ed42a6f51..b799c4359 100644 --- a/builtin/providers/cloudstack/resource_cloudstack_port_forward.go +++ b/builtin/providers/cloudstack/resource_cloudstack_port_forward.go @@ -163,12 +163,12 @@ func resourceCloudStackPortForwardRead(d *schema.ResourceData, meta interface{}) privPort, err := strconv.Atoi(r.Privateport) if err != nil { - return fmt.Errorf("Error converting private_port: %s", err) + return err } pubPort, err := strconv.Atoi(r.Publicport) if err != nil { - return fmt.Errorf("Error converting public_port: %s", err) + return err } // Update the values