I want to ask how to get the list IP Address in my getproject():
addresses={
'int-ext': [
{
'version': 4,
'addr': '192.168.1.201',
'OS-EXT-IPS:type': 'fixed',
'OS-EXT-IPS-MAC:mac_addr': 'fa:16:3e:e1:95:33'
}
]
},
accessIPv4=,
accessIPv6=
and my code :
data = getproject()
for pj in project:
for dt in data:
if pj.project == dt["name"]:
pj.addr = dt["addresses"]["int-ext"][0]["addr"]
I want to get the IP address and I try to print, but the output still "None" in running code . this code error when I run in python3