add *bool type for DisableRollback field
diff --git a/openstack/orchestration/v1/stacks/requests.go b/openstack/orchestration/v1/stacks/requests.go
index 15ca1c1..8a65793 100644
--- a/openstack/orchestration/v1/stacks/requests.go
+++ b/openstack/orchestration/v1/stacks/requests.go
@@ -8,6 +8,15 @@
"github.com/rackspace/gophercloud/pagination"
)
+type Rollback *bool
+
+var (
+ disable = true
+ Disable Rollback = &disable
+ enable = false
+ Enable Rollback = &enable
+)
+
// CreateOptsBuilder is the interface options structs have to satisfy in order
// to be used in the main Create operation in this package. Since many
// extensions decorate or modify the common logic, it is useful for them to
@@ -82,9 +91,10 @@
s["parameters"] = opts.Parameters
}
- if opts.Timeout != 0 {
- s["timeout_mins"] = opts.Timeout
+ if opts.Timeout == 0 {
+ return nil, errors.New("Required field 'Timeout' not provided.")
}
+ s["timeout_mins"] = opts.Timeout
return s, nil
}