Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
fdb91b69
Commit
fdb91b69
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
add comments in remove_environment
parent
77c51adf
No related branches found
Branches containing commit
No related tags found
1 merge request
!82
Remove cmd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mpsd_software_manager/mpsd_software.py
+6
-0
6 additions, 0 deletions
src/mpsd_software_manager/mpsd_software.py
with
6 additions
and
0 deletions
src/mpsd_software_manager/mpsd_software.py
+
6
−
0
View file @
fdb91b69
...
@@ -1086,6 +1086,12 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
...
@@ -1086,6 +1086,12 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
f
"
with package_sets
{
package_sets
}
from
{
root_dir
}
"
f
"
with package_sets
{
package_sets
}
from
{
root_dir
}
"
)
)
logging
.
warning
(
msg
)
logging
.
warning
(
msg
)
# Handle 3 situations :
# 1. remove dosent specify what to remove -> warn and exit
# 1. remove all package_sets from release -> remove release folder except logs
# 2. remove specific package_sets from release
# -> remove spack environments via spack commands
if
package_sets
==
"
NONE
"
:
if
package_sets
==
"
NONE
"
:
logging
.
warning
(
logging
.
warning
(
"
Please specify package_sets to remove, or
'
ALL
'
to remove all toolchains
"
"
Please specify package_sets to remove, or
'
ALL
'
to remove all toolchains
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment