Skip to content

Commit 10b09ed

Browse files
committed
fix tags with key flag
1 parent e54e662 commit 10b09ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/cli/provisionerdaemonstart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (r *RootCmd) provisionerDaemonStart() *serpent.Command {
153153

154154
// When authorizing with a PSK / provisioner key, we automatically scope the provisionerd
155155
// to organization. Scoping to user with PSK / provisioner key auth is not a valid configuration.
156-
if preSharedKey != "" || provisionerKey != "" {
156+
if preSharedKey != "" {
157157
logger.Info(ctx, "psk automatically sets tag "+provisionersdk.TagScope+"="+provisionersdk.ScopeOrganization)
158158
tags[provisionersdk.TagScope] = provisionersdk.ScopeOrganization
159159
}

0 commit comments

Comments
 (0)