diff --git a/launch/utils.py b/launch/utils.py index ef2c097a7c..077a1e32a3 100644 --- a/launch/utils.py +++ b/launch/utils.py @@ -52,24 +52,3 @@ def ssh_connect(ip, username, connect_kwargs={}, timeout=60): if "access okay" in out: return client return None - - -def interpret_puppet_exitcodes(rc, output): - if rc == 0: - # success - return - elif rc == 1: - # rc==1 could be because it's disabled - # rc==1 could also mean there was a compilation failure - disabled = "administratively disabled" in output - if disabled: - msg = "puppet is disabled" - else: - msg = "puppet did not run" - raise Exception(msg) - elif rc == 2: - # success with changes - return - elif rc == 124: - # timeout - raise Exception("Puppet timed out")