Skip to content

Commit

Permalink
backport of commit b0ff303
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasell committed May 18, 2023
1 parent 8485ad0 commit 008fb71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nomad/structs/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ func (vd *VariableDecrypted) Canonicalize() {
}
}

// GetNamespace returns the variable's namespace. Used for pagination.
// Copy returns a fully hydrated copy of VariableMetadata that can be
// manipulated while ensuring the original is not touched.
func (sv *VariableMetadata) Copy() *VariableMetadata {
var out VariableMetadata = *sv
var out = *sv
return &out
}

Expand Down

0 comments on commit 008fb71

Please sign in to comment.