use 'MaybeXXXX' functions in gophercloud package
diff --git a/openstack/blockstorage/v1/snapshots/requests.go b/openstack/blockstorage/v1/snapshots/requests.go
index fad5adf..40b44d8 100644
--- a/openstack/blockstorage/v1/snapshots/requests.go
+++ b/openstack/blockstorage/v1/snapshots/requests.go
@@ -2,7 +2,6 @@
import (
"github.com/rackspace/gophercloud"
- "github.com/rackspace/gophercloud/openstack/utils"
"github.com/rackspace/gophercloud/pagination"
"github.com/racker/perigee"
@@ -39,9 +38,9 @@
Snapshot: snapshot{},
}
- reqBody.Snapshot.Description = utils.MaybeString(opts.Description)
- reqBody.Snapshot.Name = utils.MaybeString(opts.Name)
- reqBody.Snapshot.VolumeID = utils.MaybeString(opts.VolumeID)
+ reqBody.Snapshot.Description = gophercloud.MaybeString(opts.Description)
+ reqBody.Snapshot.Name = gophercloud.MaybeString(opts.Name)
+ reqBody.Snapshot.VolumeID = gophercloud.MaybeString(opts.VolumeID)
reqBody.Snapshot.Force = opts.Force