Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sta, options = si.getKeywordsAndOptions()
- search_type_arg = sta[0]
- logger.debug('setting a default search_type')
- search_type = ALLHOSTS_SEARCH_CONST
- logger.debug('checking for proper arguments (%s)'%(search_type_arg))
- if len(search_type_arg) == 0:
- si.generateErrorResults('Requires either the "all_hosts" OR "fact_names" keyword')
- exit(0)
- logger.debug('checking for other keywords (%s)'%(search_type_arg))
- if search_type_arg == "fact_names":
- search_type = FACT_NAME_SEARCH_CONST
- logger.debug('checking for search_type not in SRCH_OPTIONS')
- if search_type not in SRCH_OPTIONS:
- si.generateErrorResults('Search Type Not Found')
- exit(0)
- logger.debug('starting function %s'%(search_type))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement