Repository: Azure/azure-cli

Issue:
The error message for too short/long password for VM is spelled incorrectly (pssword)
We even have a test that verifies that it is incorrectly spelled :)


Discussion:

Patch:
diff --git a/doc/configuring_your_machine.md b/doc/configuring_your_machine.md
index 7af498348..a4cbd442c 100644
--- a/doc/configuring_your_machine.md
+++ b/doc/configuring_your_machine.md
@@ -72,7 +72,7 @@ The repo has a launch.json file that will launch the version of Python that is f
 
   #### OSX/Ubuntu (bash):
   ```Shell
-  source <clone root>/env/scripts/activate
+  . <clone root>/env/bin/activate
   ```
 
   #### Windows:
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
index fd4342d86..5e0d8d925 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
@@ -679,8 +679,8 @@ def _validate_admin_password(password, os_type):
     max_length = 72 if is_linux else 123
     min_length = 12
     if len(password) not in range(min_length, max_length + 1):
-        raise CLIError('The pssword length must be between {} and {}'.format(min_length,
-                                                                             max_length))
+        raise CLIError('The password length must be between {} and {}'.format(min_length,
+                                                                              max_length))
     contains_lower = re.findall('[a-z]+', password)
     contains_upper = re.findall('[A-Z]+', password)
     contains_digit = re.findall('[0-9]+', password)


Test patch:
diff --git a/src/command_modules/azure-cli-vm/tests/test_vm_actions.py b/src/command_modules/azure-cli-vm/tests/test_vm_actions.py
index 800a04d14..45f0b6e8c 100644
--- a/src/command_modules/azure-cli-vm/tests/test_vm_actions.py
+++ b/src/command_modules/azure-cli-vm/tests/test_vm_actions.py
@@ -117,7 +117,7 @@ class TestActions(unittest.TestCase):
 
     def test_validate_admin_password_linux(self):
         # pylint: disable=line-too-long
-        err_length = 'The pssword length must be between 12 and 72'
+        err_length = 'The password length must be between 12 and 72'
         err_variety = 'Password must have the 3 of the following: 1 lower case character, 1 upper case character, 1 number and 1 special character'
 
         self._verify_password_with_ex('te', 'linux', err_length)
@@ -129,7 +129,7 @@ class TestActions(unittest.TestCase):
 
     def test_validate_admin_password_windows(self):
         # pylint: disable=line-too-long
-        err_length = 'The pssword length must be between 12 and 123'
+        err_length = 'The password length must be between 12 and 123'
         err_variety = 'Password must have the 3 of the following: 1 lower case character, 1 upper case character, 1 number and 1 special character'
 
         self._verify_password_with_ex('P1', 'windows', err_length)