WIP lookup commands

This commit is contained in:
DiG 2022-01-17 14:15:24 +01:00
parent 47ce41be60
commit 9c762d39d4
1 changed files with 4 additions and 3 deletions

View File

@ -320,13 +320,14 @@ def lookup( model, domains ):
def flatten_stack( data ):
flat = []
if type(data) == list:
flat += [ flatten_stack( sub ) for sub in data ]
return flat
if type(data) == str:
return data
if type(data) == list:
flat += [ flatten_stack( sub ) for sub in data ]
return flat
if type(data) == dict:
for key in data.keys():
if '/' in key: