From 35a0a89432de53547d391b3773dfd3a8ac62b0ca Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 29 Apr 2020 15:19:38 -0400 Subject: [PATCH] fixup comments in the s3 backend --- nixops/storage/s3.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixops/storage/s3.py b/nixops/storage/s3.py index ed4354741..34b0fa9d0 100644 --- a/nixops/storage/s3.py +++ b/nixops/storage/s3.py @@ -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: @@ -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: