Skip to content

Commit

Permalink
fixup comments in the s3 backend
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc authored and adisbladis committed Jul 10, 2020
1 parent 908e661 commit 35a0a89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nixops/storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def __init__(self, args: S3BackendOptions) -> None:
self.kms_keyid = args.kms_keyid
self.aws = boto3.Session(region_name=self.region, profile_name=self.profile)

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

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

0 comments on commit 35a0a89

Please sign in to comment.