File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,14 @@ func (r *RootCmd) provisionerDaemonStart() *serpent.Command {
154
154
// When authorizing with a PSK / provisioner key, we automatically scope the provisionerd
155
155
// to organization. Scoping to user with PSK / provisioner key auth is not a valid configuration.
156
156
if preSharedKey != "" || provisionerKey != "" {
157
- logger .Info (ctx , "psk or provisioner key auth automatically sets tag " + provisionersdk .TagScope + "=" + provisionersdk .ScopeOrganization )
157
+ logger .Info (ctx , "psk automatically sets tag " + provisionersdk .TagScope + "=" + provisionersdk .ScopeOrganization )
158
158
tags [provisionersdk .TagScope ] = provisionersdk .ScopeOrganization
159
159
}
160
+ if provisionerKey != "" {
161
+ logger .Info (ctx , "provisioner key auth automatically sets tag " + provisionersdk .TagScope + " empty" )
162
+ // no scope tag will default to org scope
163
+ delete (tags , provisionersdk .TagScope )
164
+ }
160
165
161
166
err = os .MkdirAll (cacheDir , 0o700 )
162
167
if err != nil {
You can’t perform that action at this time.
0 commit comments