Skip to content

Commit

Permalink
change metadata key to enable-oslogin-certificates (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpl4vv authored Mar 19, 2024
1 parent ddf78a8 commit 17acf80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions google_guest_agent/oslogin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ func TestGetOSLoginEnabled(t *testing.T) {
reqCerts: false,
},
{
md: `{"project": {"attributes": {"enable-oslogin": "true", "enable-oslogin-2fa": "true", "require-oslogin-certificates": "true"}}}`,
md: `{"project": {"attributes": {"enable-oslogin": "true", "enable-oslogin-2fa": "true", "enable-oslogin-certificates": "true"}}}`,
enable: true,
twofactor: true,
skey: false,
Expand Down Expand Up @@ -724,7 +724,7 @@ func TestGetOSLoginEnabled(t *testing.T) {
},
{
// ReqCerts test
md: `{"instance": {"attributes": {"enable-oslogin": "true", "enable-oslogin-2fa": "true", "require-oslogin-certificates": "true"}}}`,
md: `{"instance": {"attributes": {"enable-oslogin": "true", "enable-oslogin-2fa": "true", "enable-oslogin-certificates": "true"}}}`,
enable: true,
twofactor: true,
skey: false,
Expand Down
2 changes: 1 addition & 1 deletion metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (a *Attributes) UnmarshalJSON(b []byte) error {
SSHKeys string `json:"ssh-keys"`
TwoFactor string `json:"enable-oslogin-2fa"`
SecurityKey string `json:"enable-oslogin-sk"`
RequireCerts string `json:"require-oslogin-certificates"`
RequireCerts string `json:"enable-oslogin-certificates"`
WindowsKeys WindowsKeys `json:"windows-keys"`
WSFCAddresses string `json:"wsfc-addrs"`
WSFCAgentPort string `json:"wsfc-agent-port"`
Expand Down

0 comments on commit 17acf80

Please sign in to comment.