diff --git a/README.md b/README.md index e24cd1e9..45f30e4f 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ spec: - 192.168.1.0/26 image: architecture: amd64 - imageId: ami-0fe8bec493a81c7da + imageId: ami-0fe8bec493a81c7da # Ubuntu 22.04 image containerRuntime: install: true name: containerd diff --git a/cmd/delete/delete.go b/cmd/delete/delete.go index d8b692eb..697c7308 100644 --- a/cmd/delete/delete.go +++ b/cmd/delete/delete.go @@ -82,6 +82,9 @@ func (m command) build() *cli.Command { } // read hostUrl from cache + if opts.cachePath == "" { + opts.cachePath = filepath.Join(os.Getenv("HOME"), ".cache", "holodeck") + } opts.cachefile = filepath.Join(opts.cachePath, opts.cfg.Name+".yaml") opts.cache, err = jyaml.UnmarshalFromFile[v1alpha1.Environment](opts.cachefile) if err != nil {