Skip to content

Commit

Permalink
Only trigger an import when needed during refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Oct 20, 2022
1 parent a7cea59 commit dae956d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- type: fix
scope: cli/import
description: Only trigger an import when necessary during refresh.
2 changes: 1 addition & 1 deletion pkg/cmd/pulumi/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func newRefreshCmd() *cobra.Command {
}

// First we handle explicit create->imports we were given
if importPendingCreates != nil {
if importPendingCreates != nil && len(*importPendingCreates) > 0 {
stderr := opts.Display.Stderr
if stderr == nil {
stderr = os.Stderr
Expand Down

0 comments on commit dae956d

Please sign in to comment.