Merge pull request #5657 from leseb/fix-ip-script

ceph: fix script IP parsing
This commit is contained in:
Sébastien Han authored and GitHub committed 2020-06-16 16:06:56 +02:00
commit 83acb5d91b
1 file changed
+1 -1
@@ -99,7 +99,7 @@ class RadosJSON:
raise ExecutionFailureException(
"IP address parts should be numbers: {}".format(ipv4))
intPart = int(eachPart)
if intPart < 1 or intPart > 254:
if intPart < 0 or intPart > 254:
raise ExecutionFailureException(
"Out of range IP addresses: {}".format(ipv4))
if not port.isdigit():