Skip to content

Commit

Permalink
fix error check to create app from machine run, use opts.BuildArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jipperinbham committed Jun 23, 2022
1 parent d58c532 commit 865066a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/command/machine/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func runMachineRun(ctx context.Context) error {
}
} else {
machineApp, err = client.GetAppCompact(ctx, appName)
if err != nil && strings.Contains(err.Error(), "Could not resolve") {
if err != nil && strings.Contains(err.Error(), "Could not find App") {
machineApp, err = createApp(ctx, fmt.Sprintf("App '%s' does not exist, would you like to create it?", appName), appName, client)
if machineApp == nil {
return nil
Expand Down Expand Up @@ -419,7 +419,7 @@ func determineImage(ctx context.Context, appName string) (img *imgsrc.Deployment
if err != nil {
return nil, errors.Wrap(err, "invalid build-arg")
}
opts.ExtraBuildArgs = extraArgs
opts.BuildArgs = extraArgs

img, err = resolver.BuildImage(ctx, io, opts)
if err != nil {
Expand Down

0 comments on commit 865066a

Please sign in to comment.