Skip to content

Commit bc1a75a

Browse files
authored
fix #225, dump fails when reading password from stdin (#276)
1 parent 424cff7 commit bc1a75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rethinkdb/utils_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def take_action(self, action, dest, opt, value, values, parser):
308308

309309
values.ensure_value(dest, {})[self.metavar.lower()] = value
310310
elif action == "get_password":
311-
values[dest] = getpass.getpass("Password for `admin`: ")
311+
values.ensure_value('password', getpass.getpass("Password for `admin`: "))
312312
else:
313313
super(CommonOptionChecker, self).take_action(
314314
action, dest, opt, value, values, parser

0 commit comments

Comments
 (0)