HOST Host to ping
(self, context, module_options)
| 14 | category = CATEGORY.ENUMERATION |
| 15 | |
| 16 | def options(self, context, module_options): |
| 17 | """HOST Host to ping""" |
| 18 | self.host = None |
| 19 | |
| 20 | if "HOST" not in module_options: |
| 21 | context.log.fail("HOST option is required!") |
| 22 | exit(1) |
| 23 | |
| 24 | self.host = module_options["HOST"] |
| 25 | |
| 26 | def on_admin_login(self, context, connection): |
| 27 | # $ProgressPreference = 'SilentlyContinue' prevents the "preparing modules for the first time" error |