@@ -17,7 +17,7 @@ import (
1717 tridentconfig "github.com/netapp/trident/config"
1818 . "github.com/netapp/trident/logging"
1919 "github.com/netapp/trident/pkg/capacity"
20- collection2 "github.com/netapp/trident/pkg/collection"
20+ "github.com/netapp/trident/pkg/collection"
2121 "github.com/netapp/trident/pkg/convert"
2222 "github.com/netapp/trident/storage"
2323 sa "github.com/netapp/trident/storage_attribute"
@@ -474,7 +474,7 @@ func (d *NASFlexGroupStorageDriver) validate(ctx context.Context) error {
474474 }
475475
476476 if len (d .Config .FlexGroupAggregateList ) > 0 {
477- containsAll , _ := collection2 .ContainsElements (vserverAggrs , d .Config .FlexGroupAggregateList )
477+ containsAll , _ := collection .ContainsElements (vserverAggrs , d .Config .FlexGroupAggregateList )
478478 if ! containsAll {
479479 return fmt .Errorf ("not all aggregates specified in the flexgroupAggregateList are assigned to the SVM; flexgroupAggregateList: %v assigned aggregates: %v" ,
480480 d .Config .FlexGroupAggregateList , vserverAggrs )
@@ -540,15 +540,15 @@ func (d *NASFlexGroupStorageDriver) Create(
540540 // get options with default fallback values
541541 // see also: ontap_common.go#PopulateConfigurationDefaults
542542 var (
543- spaceReserve = collection2 .GetV (opts , "spaceReserve" , storagePool .InternalAttributes ()[SpaceReserve ])
544- snapshotPolicy = collection2 .GetV (opts , "snapshotPolicy" , storagePool .InternalAttributes ()[SnapshotPolicy ])
545- snapshotReserve = collection2 .GetV (opts , "snapshotReserve" , storagePool .InternalAttributes ()[SnapshotReserve ])
546- unixPermissions = collection2 .GetV (opts , "unixPermissions" , storagePool .InternalAttributes ()[UnixPermissions ])
547- snapshotDir = collection2 .GetV (opts , "snapshotDir" , storagePool .InternalAttributes ()[SnapshotDir ])
548- exportPolicy = collection2 .GetV (opts , "exportPolicy" , storagePool .InternalAttributes ()[ExportPolicy ])
549- securityStyle = collection2 .GetV (opts , "securityStyle" , storagePool .InternalAttributes ()[SecurityStyle ])
550- encryption = collection2 .GetV (opts , "encryption" , storagePool .InternalAttributes ()[Encryption ])
551- tieringPolicy = collection2 .GetV (opts , "tieringPolicy" , storagePool .InternalAttributes ()[TieringPolicy ])
543+ spaceReserve = collection .GetV (opts , "spaceReserve" , storagePool .InternalAttributes ()[SpaceReserve ])
544+ snapshotPolicy = collection .GetV (opts , "snapshotPolicy" , storagePool .InternalAttributes ()[SnapshotPolicy ])
545+ snapshotReserve = collection .GetV (opts , "snapshotReserve" , storagePool .InternalAttributes ()[SnapshotReserve ])
546+ unixPermissions = collection .GetV (opts , "unixPermissions" , storagePool .InternalAttributes ()[UnixPermissions ])
547+ snapshotDir = collection .GetV (opts , "snapshotDir" , storagePool .InternalAttributes ()[SnapshotDir ])
548+ exportPolicy = collection .GetV (opts , "exportPolicy" , storagePool .InternalAttributes ()[ExportPolicy ])
549+ securityStyle = collection .GetV (opts , "securityStyle" , storagePool .InternalAttributes ()[SecurityStyle ])
550+ encryption = collection .GetV (opts , "encryption" , storagePool .InternalAttributes ()[Encryption ])
551+ tieringPolicy = collection .GetV (opts , "tieringPolicy" , storagePool .InternalAttributes ()[TieringPolicy ])
552552 qosPolicy = storagePool .InternalAttributes ()[QosPolicy ]
553553 adaptiveQosPolicy = storagePool .InternalAttributes ()[AdaptiveQosPolicy ]
554554 )
@@ -865,13 +865,13 @@ func (d *NASFlexGroupStorageDriver) CreateClone(
865865 storagePoolSplitOnCloneVal = d .Config .SplitOnClone
866866 }
867867
868- split , err := strconv .ParseBool (collection2 .GetV (opts , "splitOnClone" , storagePoolSplitOnCloneVal ))
868+ split , err := strconv .ParseBool (collection .GetV (opts , "splitOnClone" , storagePoolSplitOnCloneVal ))
869869 if err != nil {
870870 return fmt .Errorf ("invalid boolean value for splitOnClone: %v" , err )
871871 }
872872
873- qosPolicy := collection2 .GetV (opts , "qosPolicy" , "" )
874- adaptiveQosPolicy := collection2 .GetV (opts , "adaptiveQosPolicy" , "" )
873+ qosPolicy := collection .GetV (opts , "qosPolicy" , "" )
874+ adaptiveQosPolicy := collection .GetV (opts , "adaptiveQosPolicy" , "" )
875875 qosPolicyGroup , err := api .NewQosPolicyGroup (qosPolicy , adaptiveQosPolicy )
876876 if err != nil {
877877 return err
0 commit comments