Description
On passing a StorageVolume as parameter one get the error:
libcloud.common.google.InvalidRequestError: {u'locationType': u'parameter', u'domain': u'global', u'message': u"Invalid value '<StorageVolume id=17316053985365710060 size=200 driver=Google Compute Engine>'. Values must match the following regular expression: '
w\\w.-
'", u'reason': u'invalidParameter', u'location': u'deviceName'}
Solution:
rewrite:
'deviceName': volume,
to:
'deviceName': volume.name,