From ac04afd5a91d371b2e78e9a42472de23f1b2cb3e Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Wed, 8 Apr 2015 12:19:28 +0530 Subject: [PATCH] #445 Warning message at the end --- ee/cli/plugins/site_functions.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index b8600f7f..2ec7edf5 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -607,10 +607,6 @@ def updatewpuserpassword(self, ee_domain, ee_site_webroot): Log.debug(self, "{0}".format(e)) raise SiteError("failed to read password input ") - if len(ee_wp_pass) < 8: - Log.warn(self, "Warning : Warning: You have provided a " - "weak password") - try: EEShellExec.cmd_exec(self, "wp --allow-root user update {0}" " --user_pass={1}" @@ -618,7 +614,9 @@ def updatewpuserpassword(self, ee_domain, ee_site_webroot): except CommandExecutionError as e: raise SiteError("wp user password update command failed") Log.info(self, "Password updated successfully") - + if len(ee_wp_pass) < 8: + Log.warn(self, "Warning: You have provided a " + "weak password") else: Log.error(self, "Invalid WordPress user {0} for {1}." .format(ee_wp_user, ee_domain))