Skip to content

Commit

Permalink
Landcape install: Dont't create user when cloud-init file is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Mar 7, 2024
1 parent 2e040bf commit 56d92c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions windows-agent/internal/proservices/landscape/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ func (e executor) install(ctx context.Context, cmd *landscapeapi.Command_Install
return err
}

if cmd.GetCloudinit() == "" {
return nil
}

// TODO: The rest of this function will need to be rethought once cloud-init support exists.
windowsUser, err := user.Current()
if err != nil {
Expand Down

0 comments on commit 56d92c4

Please sign in to comment.