ReproNim / reproman

ReproMan (AKA NICEMAN, AKA ReproNim TRD3)
https://reproman.readthedocs.io
Other
24 stars 14 forks source link

New resource should not be created when fatal exceptions are raised #605

Open asmacdo opened 1 year ago

asmacdo commented 1 year ago

As a user, if I attempt to create a misconfigured resource, the resource should not be created.

(repronim-venv) vagrant@ubuntu2204:~/reproman$ reproman create -t ssh discovery -b user=notme -l 9 -b host=discovery7.dasdfasdfafartmouth.edu -b password=$REPRO_PASS

2023-02-14 16:42:43,561 [DEBUG  ] SSH connecting to asdfasdfasdf@discovery7.dasdfasdfafartmouth.edu:22, authenticating with password 
[Errno -2] Name or service not known
2023-02-14 16:42:47,948 [INFO   ] Created the environment discovery 
(repronim-venv) vagrant@ubuntu2204:~/reproman$ reproman ls
RESOURCE NAME        TYPE                 ID                  STATUS    
-------------        ----                 --                  ------    
discovery            ssh                  90ee4693-a8fa-4b31- N/A