Skip to content

Commit 8ec9b41

Browse files
authored
[Tizen] Fix race when storing cert credentials (project-chip#37427)
1 parent d777dce commit 8ec9b41

File tree

2 files changed

+5
-4
lines changed
  • integrations/docker/images

2 files changed

+5
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
108 : Update vscode docker with java17 and fix java_home in java docker
1+
109 : [Tizen] Fix race when storing cert credentials

integrations/docker/images/stage-2/chip-build-tizen/tizen-sdk-installer/secret-tool.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def _save(self):
6161
self.fp.seek(0)
6262
self.fp.truncate()
6363
pickle.dump(self.secrets, self.fp)
64+
self.fp.flush()
6465
except IOError as e:
6566
print("ERROR: " + str(e), file=sys.stderr)
6667

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

9495
parser_clear = subparsers.add_parser(
95-
"clear", help="Remove passward associated with given key value pairs")
96+
"clear", help="Remove password associated with given key value pairs")
9697
parser_clear.add_argument("-l", "--label", action='store', required=True,
9798
help="label for given key value pairs")
9899
parser_clear.add_argument("kw", nargs='*',
99100
help="key value pairs")
100101

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

110111
parser_lookup = subparsers.add_parser(
111-
"lookup", help="Retrieve passward associated with given key value pairs")
112+
"lookup", help="Retrieve password associated with given key value pairs")
112113
parser_lookup.add_argument("-l", "--label", action='store', required=True,
113114
help="label for given key value pairs")
114115
parser_lookup.add_argument("kw", nargs='*',

0 commit comments

Comments
 (0)