File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ func CopyAWSresourcesContainer(rc common.ResourcesContainerInf) (*AWSresourcesCo
44
44
if ! ok {
45
45
return nil , fmt .Errorf ("error casting resources to *aws.ResourcesContainerModel type" )
46
46
}
47
- return & AWSresourcesContainer {ResourcesContainer : * awsResources }, nil
47
+ awsRC := NewAWSresourcesContainer ()
48
+ awsRC .ResourcesContainer = * awsResources
49
+ return awsRC , nil
48
50
}
49
51
50
52
// parseResourcesFromFile returns aws.ResourcesContainer object, containing the configured resources structs
Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ func CopyIBMresourcesContainer(rc common.ResourcesContainerInf) (*IBMresourcesCo
72
72
if ! ok {
73
73
return nil , fmt .Errorf ("error casting resources to *datamodel.ResourcesContainerModel type" )
74
74
}
75
- return & IBMresourcesContainer {ResourcesContainerModel : * ibmResources }, nil
75
+ ibmRC := NewIBMresourcesContainer ()
76
+ ibmRC .ResourcesContainerModel = * ibmResources
77
+ return ibmRC , nil
76
78
}
77
79
78
80
func mergeResourcesContainers (rc1 , rc2 * IBMresourcesContainer ) (* IBMresourcesContainer , error ) {
You can’t perform that action at this time.
0 commit comments