Skip to content

Commit

Permalink
[Tizen] Fix race when storing cert credentials (#37427)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq authored Feb 6, 2025
1 parent d777dce commit 8ec9b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integrations/docker/images/base/chip-build/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
108 : Update vscode docker with java17 and fix java_home in java docker
109 : [Tizen] Fix race when storing cert credentials
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def _save(self):
self.fp.seek(0)
self.fp.truncate()
pickle.dump(self.secrets, self.fp)
self.fp.flush()
except IOError as e:
print("ERROR: " + str(e), file=sys.stderr)

Expand Down Expand Up @@ -92,14 +93,14 @@ def lookup(self, label: str, **kw):
subparsers = parser.add_subparsers(dest='command', required=True)

parser_clear = subparsers.add_parser(
"clear", help="Remove passward associated with given key value pairs")
"clear", help="Remove password associated with given key value pairs")
parser_clear.add_argument("-l", "--label", action='store', required=True,
help="label for given key value pairs")
parser_clear.add_argument("kw", nargs='*',
help="key value pairs")

parser_store = subparsers.add_parser(
"store", help="Store passward for given key value pairs")
"store", help="Store password for given key value pairs")
parser_store.add_argument("-l", "--label", action='store', required=True,
help="label for given key value pairs")
parser_store.add_argument("-p", "--password", action='store', required=True,
Expand All @@ -108,7 +109,7 @@ def lookup(self, label: str, **kw):
help="key value pairs")

parser_lookup = subparsers.add_parser(
"lookup", help="Retrieve passward associated with given key value pairs")
"lookup", help="Retrieve password associated with given key value pairs")
parser_lookup.add_argument("-l", "--label", action='store', required=True,
help="label for given key value pairs")
parser_lookup.add_argument("kw", nargs='*',
Expand Down

0 comments on commit 8ec9b41

Please sign in to comment.