Skip to content

Commit 01397ac

Browse files
committed
Fix podman test failure-s
1 parent 009a504 commit 01397ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: pkg/odo/cli/dev/dev.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ func (o *DevOptions) Run(ctx context.Context) (err error) {
157157
log.Title("Developing using the \""+componentName+"\" Devfile",
158158
dest,
159159
"odo version: "+version.VERSION)
160-
161-
genericclioptions.WarnIfDefaultNamespace(odocontext.GetNamespace(ctx), o.clientset.KubernetesClient)
162-
160+
if platform == commonflags.PlatformCluster {
161+
genericclioptions.WarnIfDefaultNamespace(odocontext.GetNamespace(ctx), o.clientset.KubernetesClient)
162+
}
163163
// check for .gitignore file and add odo-file-index.json to .gitignore.
164164
// In case the .gitignore was created by odo, it is purposely not reported as candidate for deletion (via a call to files.ReportLocalFileGeneratedByOdo)
165165
// because a .gitignore file is more likely to be modified by the user afterward (for another usage).

0 commit comments

Comments
 (0)