Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Now ignoring parameters of type SeparatorParameter (not real paramete…
Browse files Browse the repository at this point in the history
…rs!!!!!!)

Also removed debug print statement left in by DB. Tsk tsk.
  • Loading branch information
Jim Olsen committed Mar 16, 2017
1 parent 2055027 commit e70ef8d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/pytan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def extract_params(s):
sp_value = sp_value.replace('\\{', '{')
if '\\,' in sp_value:
sp_value = sp_value.replace('\\,', ',')
print(sp_value)
# print(sp_value)
# sp_key = dirname
# sp_value = Program Files
parsed_params[sp_key] = sp_value
Expand Down Expand Up @@ -1400,7 +1400,17 @@ def build_param_objlist(obj, user_params, delim='', derive_def=False, empty_ok=F

processed = []

# list of parameter types that are not actually parameters and thusly should be ignored
skip_types = [
"com.tanium.components.parameters::SeparatorParameter",
]

for obj_param in obj_params:
p_type = obj_param.get("parameterType", "")

if p_type in skip_types:
continue

# get the key for this param
p_key = obj_param["key"]
processed.append(p_key)
Expand Down

0 comments on commit e70ef8d

Please sign in to comment.