Replace deprecated is_integer
The is_integer function is deprecated since 4.13.0[1].
[1] 6e7e69fe20
Change-Id: If6d8ccefe007b7a8954bf7dc854f0e2052b53876
This commit is contained in:
parent
0079aa6ae0
commit
212f47ca40
|
@ -29,7 +29,7 @@ define tripleo::profile::base::swift::add_devices(
|
|||
# For now our regex supports the r1z1-192.0.2.6:%PORT%/d1 syntax or the
|
||||
# newer r1z%<controller or SwiftStorage><N>%-192.0.2.6:%PORT%/d1 syntax.
|
||||
$server_num_or_device = regsubst($name,'^r1z%+[A-Za-z]*([0-9]+)%+-(.*)$','\1')
|
||||
if (is_integer($server_num_or_device)) {
|
||||
if $server_num_or_device =~ Stdlib::Compat::Integer {
|
||||
$server_num = $server_num_or_device
|
||||
} else {
|
||||
$server_num = '1'
|
||||
|
|
Loading…
Reference in New Issue