Merge pull request #14 from aquasecurity/not-interactive-error-on-container

controlling the -it option
This commit is contained in:
danielsagi
2018-08-16 19:12:06 +03:00
committed by GitHub

View File

@@ -102,6 +102,9 @@ def main():
handler.join()
except KeyboardInterrupt:
logging.debug("Kube-Hunter stopped by user")
# happens when running a container without interactive option
except EOFError:
logging.error("\033[0;31mPlease run again with -it\033[0m")
finally:
if hunt_started:
handler.publish_event(HuntFinished())
@@ -113,4 +116,4 @@ def main():
while True: time.sleep(5)
if __name__ == '__main__':
main()
main()