Sha256: e6eb0e73a41ed298728e903c0b74f19173563273e0eb7746ff066d434f4d5411
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
module Ocp::Registry class CloudManager class Openstack module CinderHelper CINDER_QUOTA_FIELDS = ["volumes", "snapshots", "gigabytes"] def default_volume_quota with_openstack { volume.get_quota_defaults(nil).body["quota_set"] } end def set_volume_quota(tenant_id, hash) with_openstack do settings = Ocp::Registry::Common.hash_filter(hash, CINDER_QUOTA_FIELDS) volume.update_quota(tenant_id, settings).body["quota_set"] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ocp_registry-0.0.5.pre | lib/ocp_registry/cloud_manager/openstack/cinder_helper.rb |
ocp_registry-0.0.1.alpha | lib/ocp_registry/cloud_manager/openstack/cinder_helper.rb |