For a given module's clean/default settings
drush -y pmu smtp
drush cr
drush -y en smtp
Note the quoting, or not, of keys' values,
drush cget smtp.settings
smtp_on: false
smtp_host: ''
smtp_hostbackup: ''
smtp_port: '25'
smtp_protocol: standard
smtp_username: ''
smtp_password: ''
smtp_from: ''
smtp_fromname: ''
smtp_allowhtml: ''
smtp_test_address: ''
smtp_debugging: false
_core:
default_config_hash: X...X
After editing, using the same quoting as above
drush -y cset smtp.settings smtp_on true
drush -y cset smtp.settings smtp_host 'smtphost.example.com'
drush -y cset smtp.settings smtp_hostbackup ''
drush -y cset smtp.settings smtp_port '587'
drush -y cset smtp.settings smtp_protocol tls
drush -y cset smtp.settings smtp_username 'authsender@example.com'
drush -y cset smtp.settings smtp_password 'ppppppp'
drush -y cset smtp.settings smtp_from 'sender@example.com'
drush -y cset smtp.settings smtp_fromname 'Example.Com Mailer'
drush -y cset smtp.settings smtp_allowhtml '0'
drush -y cset smtp.settings smtp_test_address 'postmaster@example.com'
drush -y cset smtp.settings smtp_debugging false
The result, now in active config, is differently quoted
drush cget smtp.settings
smtp_on: true
smtp_host: smtphost.example.com
smtp_hostbackup: ''
smtp_port: '587'
smtp_protocol: tls
smtp_username: authsender@example.com
smtp_password: ppppppp
smtp_from: sender@example.com
smtp_fromname: 'Example.Com Mailer'
smtp_allowhtml: '0'
smtp_test_address: postmaster@example.com
smtp_debugging: true
_core:
default_config_hash: X...X
Is the inconsistency intended? problematic?
Comments
Comment #1
Anonymous (not verified) commentedbugsonly created an issue. See original summary.
Comment #2
Anonymous (not verified) commented