Skip to content

Commit 9f3d08e

Browse files
committed
fixup comments in the s3 backend
1 parent 0422ea6 commit 9f3d08e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nixops/storage/s3.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def __init__(self, args: S3BackendOptions) -> None:
3737
self.kms_keyid = args.kms_keyid
3838
self.aws = boto3.Session(region_name=self.region, profile_name=self.profile)
3939

40-
# fetchToFile: acquire a lock and download the state file to
41-
# the local disk. Note: no arguments will be passed over kwargs.
42-
# Making it part of the type definition allows adding new
43-
# arguments later.
40+
# fetchToFile: download the state file from the user's S3 bucket
41+
# to the local disk.
42+
# Note: no arguments will be passed over kwargs. Making it part of
43+
# the type definition allows adding new arguments later.
4444
def fetchToFile(self, path: str, **kwargs) -> None:
4545
try:
4646
with open(path, "wb") as f:
@@ -58,7 +58,7 @@ def fetchToFile(self, path: str, **kwargs) -> None:
5858
def onOpen(self, sf: nixops.statefile.StateFile, **kwargs) -> None:
5959
pass
6060

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

0 commit comments

Comments
 (0)