Fix thinko / type error
diff --git a/interfaces.go b/interfaces.go
index bdfaffd..71c0be4 100644
--- a/interfaces.go
+++ b/interfaces.go
@@ -221,7 +221,7 @@
// CreateDefaultSGRule creates a default security group rule.
// This method only works if the provider supports the os-security-groups-default-rules extension.
- CreateDefaultSGRule(SGRule) error
+ CreateDefaultSGRule(SGRule) (*SGRule, error)
// GetSGRule obtains information for a specified security group rule.
// This method only works if the provider supports the os-security-groups-default-rules extension.
diff --git a/servers.go b/servers.go
index 9afb396..b8eec4f 100644
--- a/servers.go
+++ b/servers.go
@@ -502,7 +502,7 @@
}
// See the CloudServersProvider interface for details.
-func (gsp *genericServersProvider) CreateDefaultSGRule(r SGRule) error {
+func (gsp *genericServersProvider) CreateDefaultSGRule(r SGRule) (*SGRule, error) {
var sgr *SGRule
err := gsp.context.WithReauth(gsp.access, func() error {
ep := fmt.Sprintf("%s/os-security-group-rules", gsp.endpoint)