File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
"github.com/srl-labs/containerlab/runtime/docker"
26
26
"github.com/srl-labs/containerlab/runtime/ignite"
27
27
"github.com/srl-labs/containerlab/types"
28
+ "github.com/srl-labs/containerlab/utils"
28
29
"golang.org/x/crypto/ssh"
29
30
"golang.org/x/exp/slices"
30
31
)
@@ -199,7 +200,7 @@ func findTopoFileByPath(path string) (string, error) {
199
200
// creates a temp file with topology contents
200
201
// and returns a path to the temp file.
201
202
func (c * CLab ) readFromStdin () (string , error ) {
202
- c .TopoPaths .CreateTmpDir ( )
203
+ utils . CreateDirectory ( c .TopoPaths .ClabTmpDir (), 0755 )
203
204
204
205
tmpFile , err := os .CreateTemp (c .TopoPaths .ClabTmpDir (), "topo-*.clab.yml" )
205
206
if err != nil {
You can’t perform that action at this time.
0 commit comments