You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
When the backup parameter is passed into the script from a Jenkins job, it's passed in as a string rather than a boolean (this actually applies to all parameters).
So when backup=False is passed, the backup variable is set. That means, if when it's set to False, the following if statement is satisfied:
So, the solution here is we need ensure the backup parameter is a boolean and we need to define the app_primary role. I do not think we can use the common.Utils.define_roles() function to do this because a config.ini file does not exist. I think we can simply set that role in the fabfile-drushcommand.py script.
The text was updated successfully, but these errors were encountered:
When the
backup
parameter is passed into the script from a Jenkins job, it's passed in as a string rather than a boolean (this actually applies to all parameters).So when
backup=False
is passed, the backup variable is set. That means, if when it's set to False, the followingif
statement is satisfied:deployments/drupal/fabfile-drushcommand.py
Lines 21 to 24 in 76df37b
The
execute(common.MySQL.mysql_backup_db, db_name, 'drush_command', True)
call fails to run because theapp_primary
role hasn't been defined:deployments/common/MySQL.py
Lines 126 to 129 in 76df37b
So, the solution here is we need ensure the
backup
parameter is a boolean and we need to define theapp_primary
role. I do not think we can use thecommon.Utils.define_roles()
function to do this because a config.ini file does not exist. I think we can simply set that role in the fabfile-drushcommand.py script.The text was updated successfully, but these errors were encountered: