Skip to content

Commit 7157e91

Browse files
committed
fixup f52369f^C
1 parent 356fb5d commit 7157e91

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

nixops/storage/memory.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@ def options(**kwargs) -> MemoryBackendOptions:
1717
def __init__(self, args: MemoryBackendOptions) -> None:
1818
pass
1919

20-
# fetchToFile: acquire a lock and download the state file to
21-
# the local disk. Note: no arguments will be passed over kwargs.
22-
# Making it part of the type definition allows adding new
23-
# arguments later.
20+
# fetchToFile: download the state file to the local disk.
21+
# Note: no arguments will be passed over kwargs. Making it part of
22+
# the type definition allows adding new arguments later.
2423
def fetchToFile(self, path: str, **kwargs) -> None:
2524
pass
2625

26+
# onOpen: receive the StateFile object for last-minute, backend
27+
# specific changes to the state file.
28+
# Note: no arguments will be passed over kwargs. Making it part of
29+
# the type definition allows adding new arguments later.
2730
def onOpen(self, sf: nixops.statefile.StateFile, **kwargs) -> None:
2831
sf.create_deployment()
2932

30-
# uploadFromFile: upload the new state file and release any locks
33+
# uploadFromFile: upload the new version of the state file
3134
# Note: no arguments will be passed over kwargs. Making it part of
3235
# the type definition allows adding new arguments later.
3336
def uploadFromFile(self, path: str, **kwargs) -> None:

0 commit comments

Comments
 (0)