Skip to content

fix: reduce cyclomatic complexity 33 in AWS provisioner #298

@dirien

Description

@dirien

The AWS provisioner has a function with a very high cyclomatic

pkg/cloud/aws/aws.go:115:1: cyclomatic complexity 33 of func `(*Aws).CreateServer` is high (> 30) (gocyclo)
func (a *Aws) CreateServer(args automation.ServerArgs) (*automation.RessourceResults, error) {

We should split the fn to reduce the complexity

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions