@when_not_all 'config.default.profile_name' 'config.default.was_admin_user' 'config.default.was_admin_pw' 'config.default.profile_path'
@when_any 'config.changed.profile_name' 'config.changed.was_admin_user' 'config.changed.was_admin_pw' 'config.changed.profile_path'
function create_new_profile() {
if [ -f $CHARM_DIR/files/was_users.txt ]; then
source $CHARM_DIR/files/was_users.txt
old_user_name=$user_name
old_password=$password
old_profile_path=$profile_path
else
touch $CHARM_DIR/files/was_users.txt
fi
if [ "$was_admin_pw" == "" ]; then
status-set blocked "IBM WAS Base: Please set the was admin password through was_admin_pw config option."
exit 0
fi
}