Fix env remove indentation (#40811)

This commit is contained in:
Tamara Dahlgren 2023-10-31 23:08:46 -07:00 committed by GitHub
parent cb018fd7eb
commit f5d717cd5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,13 +400,11 @@ def env_remove(args):
if env.active:
tty.die(f"Environment {name} can't be removed while activated.")
env.destroy()
tty.msg(f"Successfully removed environment {name}")
tty.msg(f"Successfully removed environment '{name}'")
for bad_env_name in bad_envs:
shutil.rmtree(
spack.environment.environment.environment_dir_from_name(
bad_env_name, exists_ok=True
)
spack.environment.environment.environment_dir_from_name(bad_env_name, exists_ok=True)
)
tty.msg(f"Successfully removed environment '{bad_env_name}'")