File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/codeflare_sdk/cluster Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
27
27
class AWManager :
28
+ """
29
+ An object for submitting and removing existing AppWrapper yamls
30
+ to be added to the MCAD queue.
31
+ """
32
+
28
33
def __init__ (self , filename : str ) -> None :
34
+ """
35
+ Create the AppWrapper Manager object by passing in an
36
+ AppWrapper yaml file
37
+ """
29
38
if not isfile (filename ):
30
39
raise FileNotFoundError (errno .ENOENT , os .strerror (errno .ENOENT ), filename )
31
40
self .filename = filename
@@ -49,7 +58,6 @@ def submit(self) -> None:
49
58
with oc .project (self .namespace ):
50
59
oc .invoke ("create" , ["-f" , self .filename ])
51
60
except oc .OpenShiftPythonException as osp : # pragma: no cover
52
- # WHATS THE EXCEPTION FOR ALREADY EXISTS?
53
61
error_msg = osp .result .err ()
54
62
if "Unauthorized" in error_msg or "Forbidden" in error_msg :
55
63
raise PermissionError (
You can’t perform that action at this time.
0 commit comments