You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Infof("Successfully cleaned up topology directory '%s' for user '%s'", targetDir, username)
706
691
}
707
692
} else {
708
-
log.Warnf("DestroyLab user '%s': Cleanup requested but skipping directory removal for path '%s'. Reason: Path is not within expected ~/.clab structure or original path unknown/remote.", username, targetDir)
693
+
log.Warnf("DestroyLab user '%s': Cleanup requested but skipping directory removal for path '%s'. Reason: Path is not within expected structure or original path unknown/remote.", username, targetDir)
709
694
}
710
695
} else {
711
696
log.Infof("DestroyLab user '%s': Cleanup requested but skipping directory removal. Reason: Lab likely deployed from URL or original path unknown.", username)
// --- Determine Output/Action and Target File Path ---
149
148
vartargetFilePathstring// Path used by clab generate --file and clab deploy -t
150
149
varerrerror
151
-
varusr*user.User
152
150
varuid, gidint
153
151
154
152
ifreq.Deploy {
155
-
// --- Deploy=true: Save to user's ~/.clab/<labName>/ directory ---
153
+
// --- Deploy=true: Save to shared or user's .clab directory ---
156
154
ifreq.OutputFile!="" {
157
-
log.Warnf("GenerateTopology user '%s': 'outputFile' field provided but Deploy=true. Ignoring 'outputFile' and saving to user's ~/.clab directory.", username)
155
+
log.Warnf("GenerateTopology user '%s': 'outputFile' field provided but Deploy=true. Ignoring 'outputFile' and saving to appropriate lab directory.", username)
0 commit comments