Skip to content

Commit c3a2ccc

Browse files
committed
Added remaining docstrings
1 parent ef2be78 commit c3a2ccc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/codeflare_sdk/cluster/awload.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@
2525

2626

2727
class AWManager:
28+
"""
29+
An object for submitting and removing existing AppWrapper yamls
30+
to be added to the MCAD queue.
31+
"""
32+
2833
def __init__(self, filename: str) -> None:
34+
"""
35+
Create the AppWrapper Manager object by passing in an
36+
AppWrapper yaml file
37+
"""
2938
if not isfile(filename):
3039
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), filename)
3140
self.filename = filename
@@ -49,7 +58,6 @@ def submit(self) -> None:
4958
with oc.project(self.namespace):
5059
oc.invoke("create", ["-f", self.filename])
5160
except oc.OpenShiftPythonException as osp: # pragma: no cover
52-
# WHATS THE EXCEPTION FOR ALREADY EXISTS?
5361
error_msg = osp.result.err()
5462
if "Unauthorized" in error_msg or "Forbidden" in error_msg:
5563
raise PermissionError(

0 commit comments

Comments
 (0)