Skip to content
Snippets Groups Projects
Commit 0b743b00 authored by Fabien Combernous's avatar Fabien Combernous
Browse files

Resolve "space and double quote can be present in wp fields"

parent 42af0576
No related branches found
No related tags found
No related merge requests found
......@@ -257,7 +257,6 @@ Details in `REFERENCE.md`.
This module is tested with following OSes :
* Ubuntu 16.04
* Debian 8, 9
* CentOS 7
Known bugs are listed in `CHANGELOG.md` file.
......@@ -265,6 +264,9 @@ Even if module should work with Puppet4, Puppet 4 is end of life since 2019-01-0
So tests with Puppet 4 are removed.
Acceptance tests are done with last available release 5 and 6.
PHP shiped with CentOS 7 is version 5.4. WordPress 5.2 requires at least 5.6.20.
So, CentOS7 is removed from acceptance tests and from the list of compatible OSes.
## Development
Home at URL https://gitlab.adullact.net/adullact/puppet-wordpress
......
......@@ -47,4 +47,4 @@
"pdk-version": "1.9.1",
"template-url": "file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git",
"template-ref": "1.9.1-0-g6945d31"
}
\ No newline at end of file
}
......@@ -68,7 +68,7 @@ for site in wproot.keys
Open3.popen3('wp','--allow-root','--format=csv',"--path=#{path}",'--fields=language,status,update','--status=active','language','core','list') do |stdin, stdout, stderr, wait_thr|
if wait_thr.value.success?
while line = stdout.gets
langcode, langstatus, langupdate = line.match(/^([\w_]+),([\w]+),([\w]+)/).captures
langcode, langstatus, langupdate = line.match(/^([\w_]+),(["\w ]+),(["\w ]+)/).captures
lang_hash = {}
if langcode != 'language'
......@@ -90,7 +90,7 @@ for site in wproot.keys
Open3.popen3('wp','--allow-root','--format=csv',"--path=#{path}",'plugin','list') do |stdin, stdout, stderr, wait_thr|
if wait_thr.value.success?
while line = stdout.gets
pluginname, pluginstatus, pluginupdate, pluginversion = line.match(/^([\w\d-]+),([\w\d]+),([\w\d]+),([\w\d\.]+)/).captures
pluginname, pluginstatus, pluginupdate, pluginversion = line.match(/^([\w\d-]+),(["\w\d ]+),(["\w\d ]+),(["\w\d\. ]+)/).captures
plugin_hash = {}
if pluginname != 'name'
......@@ -112,7 +112,7 @@ for site in wproot.keys
Open3.popen3('wp','--allow-root','--format=csv',"--path=#{path}",'theme','list') do |stdin, stdout, stderr, wait_thr|
if wait_thr.value.success?
while line = stdout.gets
themename, themestatus, themeupdate, themeversion = line.match(/^([\w\d-]+),([\w\d]+),([\w\d]+),([\w\d\.]+)/).captures
themename, themestatus, themeupdate, themeversion = line.match(/^([\w\d-]+),(["\w\d ]+),(["\w\d ]+),(["\w\d\. ]+)/).captures
theme_hash = {}
if themename != 'name'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment