B #331: Fix default scope (#2294)

OpenNebula/terraform-provider-opennebula#331
This commit is contained in:
onenhansen authored and GitHub committed 2022-10-04 10:34:32 +02:00
1 parent 304126d9b0
commit febcadef8b
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@ type VMFilter struct {
// NewVMFilterDefault return a VM filter configured by default
func NewVMFilterDefault() *VMFilter {
return &VMFilter{
Who: param.PoolWhoMine,
Who: param.PoolWhoAll,
StartID: -1,
EndID: -1,
State: -1,
@@ -86,7 +86,7 @@ func handleArgs(args []int) ([]interface{}, error) {
switch len(args) {
case 0:
who = parameters.PoolWhoMine
who = parameters.PoolWhoAll
start = -1
end = -1
case 1:
+1 -1
View File
@@ -74,7 +74,7 @@ func (vc *VirtualNetworksController) Info(args ...int) (*vn.Pool, error) {
switch len(args) {
case 0:
who = parameters.PoolWhoMine
who = parameters.PoolWhoAll
start = -1
end = -1
case 1:
+1 -1
View File
@@ -74,7 +74,7 @@ func (vc *VirtualRoutersController) Info(args ...int) (*vr.Pool, error) {
switch len(args) {
case 0:
who = parameters.PoolWhoMine
who = parameters.PoolWhoAll
start = -1
end = -1
case 3: