diff --git a/api/lagoon/client/deploytargets.go b/api/lagoon/client/deploytargets.go index fab5fb3..15e5896 100644 --- a/api/lagoon/client/deploytargets.go +++ b/api/lagoon/client/deploytargets.go @@ -3,7 +3,6 @@ package client import ( "context" "encoding/json" - "fmt" "github.com/machinebox/graphql" "github.com/uselagoon/machinery/api/schema" ) @@ -97,9 +96,6 @@ func (c *Client) DeployTargetsByOrganizationNameOrID(ctx context.Context, name * } } - if len(o.DeployTargets) == 0 { - return fmt.Errorf("no deploy targets found for organization %s", o.Name) - } data, err := json.Marshal(o.DeployTargets) if err != nil { return err diff --git a/api/lagoon/client/environments.go b/api/lagoon/client/environments.go index ad21fe3..9cbe346 100644 --- a/api/lagoon/client/environments.go +++ b/api/lagoon/client/environments.go @@ -3,8 +3,6 @@ package client import ( "context" "encoding/json" - "fmt" - "github.com/uselagoon/machinery/api/schema" ) @@ -116,9 +114,6 @@ func (c *Client) EnvironmentsByProjectName(ctx context.Context, project string, if err != nil { return err } - if len(p.Environments) == 0 { - return fmt.Errorf("no environments found for project") - } db, err := json.Marshal(p.Environments) if err != nil { return err diff --git a/api/lagoon/client/projects.go b/api/lagoon/client/projects.go index 2c50c33..6f70775 100644 --- a/api/lagoon/client/projects.go +++ b/api/lagoon/client/projects.go @@ -3,8 +3,6 @@ package client import ( "context" "encoding/json" - "fmt" - "github.com/uselagoon/machinery/api/schema" ) @@ -224,9 +222,6 @@ func (c *Client) ProjectsByOrganizationID(ctx context.Context, id uint, projects if err != nil { return err } - if len(o.Projects) == 0 { - return fmt.Errorf("no associated projects found for organization %s", o.Name) - } data, err := json.Marshal(o.Projects) if err != nil { return err diff --git a/api/lagoon/client/usergroups.go b/api/lagoon/client/usergroups.go index b06af8f..58b6f4b 100644 --- a/api/lagoon/client/usergroups.go +++ b/api/lagoon/client/usergroups.go @@ -3,8 +3,6 @@ package client import ( "context" "encoding/json" - "fmt" - "github.com/uselagoon/machinery/api/schema" ) @@ -309,9 +307,6 @@ func (c *Client) GroupsByOrganizationID(ctx context.Context, id uint, groups *[] if err != nil { return err } - if len(o.Groups) == 0 { - return fmt.Errorf("no associated groups found for organization %s", o.Name) - } data, err := json.Marshal(o.Groups) if err != nil { return err