sureshanaparti commented on a change in pull request #27:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/27#discussion_r763822209



##########
File path: cloudstack/resource_cloudstack_port_forward.go
##########
@@ -109,13 +109,12 @@ func resourceCloudStackPortForwardCreate(d 
*schema.ResourceData, meta interface{
                forwards := 
resourceCloudStackPortForward().Schema["forward"].ZeroValue().(*schema.Set)
 
                err := createPortForwards(d, meta, forwards, nrs)
-
-               // We need to update this first to preserve the correct state
-               d.Set("forward", forwards)
-
-               if err != nil {
+       if err != nil {
                        return err
                }
+
+        // We need to update this first to preserve the correct state
+        d.Set("forward", forwards)

Review comment:
       seems indentation is missed here




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to