WithRoles variadic args (#1395)
Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
@@ -85,7 +85,7 @@ func WithMetadata(md map[string]string) GenerateOption {
|
||||
}
|
||||
|
||||
// WithRoles for the generated account
|
||||
func WithRoles(rs []string) GenerateOption {
|
||||
func WithRoles(rs ...string) GenerateOption {
|
||||
return func(o *GenerateOptions) {
|
||||
o.Roles = rs
|
||||
}
|
||||
|
Reference in New Issue
Block a user