Browse Source

Change return-type from set to list

* Now we are able to get elements by index

Change-Id: I71fc372ab0b3e410ea397a80e96c4ed83b43d185
Closes-bug: #1513494
tags/8.0
Fedor Zhadaev 4 years ago
parent
commit
5ab60f1b7b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fuelmenu/common/network.py

+ 1
- 1
fuelmenu/common/network.py View File

@@ -66,7 +66,7 @@ def getNetwork(ip, netmask, additionalip=None):
def range(startip, endip):
#Return a list of IPs between startip and endip
try:
return set(netaddr.iter_iprange(startip, endip))
return list(netaddr.iter_iprange(startip, endip))
except netaddr.AddrFormatError:
raise BadIPException("Invalid IP address(es) specified.")


Loading…
Cancel
Save