Skip to content

Commit

Permalink
Set deployment type at deployment type check
Browse files Browse the repository at this point in the history
  • Loading branch information
blva committed Mar 20, 2024
1 parent eece278 commit 1bfb719
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions internal/cli/atlas/deployments/options/deployment_opts.go
Expand Up @@ -242,11 +242,19 @@ func (opts *DeploymentOpts) ValidateAndPromptDeploymentType() error {
}

func (opts *DeploymentOpts) IsAtlasDeploymentType() bool {
return strings.EqualFold(opts.DeploymentType, AtlasCluster)
if strings.EqualFold(opts.DeploymentType, AtlasCluster) {
telemetry.AppendOption(telemetry.WithDeploymentType(AtlasCluster))
return true
}
return false
}

func (opts *DeploymentOpts) IsLocalDeploymentType() bool {
return strings.EqualFold(opts.DeploymentType, LocalCluster)
if strings.EqualFold(opts.DeploymentType, LocalCluster) {
telemetry.AppendOption(telemetry.WithDeploymentType(LocalCluster))
return true
}
return false
}

func (opts *DeploymentOpts) NoDeploymentTypeSet() bool {
Expand Down

0 comments on commit 1bfb719

Please sign in to comment.