File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 22
33 Release History
44===============
5+ 1.2.1
6+ ++++++
7+ * For pwinput, read input from stdin when tty is not available
8+
591.2.0
610++++++
711* Add support to enable a VM using managed object name (moName).
Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ def create_from_machines(
888888 for vm in vm_list :
889889 biosId2VM [vm ["biosId" ]].append (vm )
890890 for i , vm in enumerate (vm_list ):
891- prefix = f"[{ i + 1 } /{ len (vm_list )} ]"
891+ prefix = f"[{ i + 1 } /{ len (vm_list )} ]"
892892 machineId = vm ["machineId" ]
893893 machineName = vm ["name" ]
894894 machineRG = vm ["resourceGroup" ]
Original file line number Diff line number Diff line change 3434except ImportError :
3535 pass # There is no typing module on Python 2, but that's fine because we use the comment-style of type hints.
3636
37- if sys .platform == 'win32' :
37+ if not sys .stdin .isatty ():
38+ def pwinput (prompt = 'Password: ' , mask = '*' ):
39+ return sys .stdin .readline ().rstrip ()
40+ elif sys .platform == 'win32' :
3841 # For some reason, mypy reports that msvcrt doesn't have getch, ignore this warning:
3942 from msvcrt import getch # type: ignore
4043
Original file line number Diff line number Diff line change 1919# TODO: Confirm this is the right version number you want and it matches your
2020# HISTORY.rst entry.
2121
22- VERSION = '1.2.0 '
22+ VERSION = '1.2.1 '
2323
2424# The full list of classifiers is available at
2525# https://pypi.python.org/pypi?%3Aaction=list_classifiers
You can’t perform that action at this time.
0 commit comments