Skip to content

Commit e091b77

Browse files
committed
Merge branch 'master' into rest-resources-int-datatypes
2 parents dbf4f87 + f244f97 commit e091b77

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#### Fixes
66
* REST-based resources are now coerced to string values to uniformly compare user defined values and Elasticsearch API responses.
77
* Resolve deprecation warnings related to use of the deprecated is_array() function.
8+
* Resolve deprecation warnings related to use of the deprecated is_string() function.
89

910
## 6.3.0 (June 18, 2018)
1011

manifests/license.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
Optional[Enum['shield', 'x-pack']] $security_plugin = $elasticsearch::security_plugin,
6060
Boolean $validate_tls = $elasticsearch::validate_tls,
6161
) {
62-
if $content != undef and is_string($content) {
62+
if $content =~ String {
6363
$_content = parsejson($content)
6464
} else {
6565
$_content = $content

manifests/template.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
Optional[String] $source = undef,
6767
Boolean $validate_tls = $elasticsearch::validate_tls,
6868
) {
69-
if $content != undef and is_string($content) {
69+
if $content =~ String {
7070
$_content = parsejson($content)
7171
} else {
7272
$_content = $content

0 commit comments

Comments
 (0)