objectstorage v1 and orchestration v1 struct tags
diff --git a/openstack/orchestration/v1/stacks/environment.go b/openstack/orchestration/v1/stacks/environment.go
index abaff20..8698918 100644
--- a/openstack/orchestration/v1/stacks/environment.go
+++ b/openstack/orchestration/v1/stacks/environment.go
@@ -1,9 +1,6 @@
package stacks
-import (
- "fmt"
- "strings"
-)
+import "strings"
// Environment is a structure that represents stack environments
type Environment struct {
@@ -26,7 +23,7 @@
}
for key := range e.Parsed {
if _, ok := EnvironmentSections[key]; !ok {
- return fmt.Errorf("Environment has wrong section: %s", key)
+ return ErrInvalidEnvironment{Section: key}
}
}
return nil