From 8a1d7a5ab6c22c10f17acb4245110ec635af9e09 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 10 Mar 2016 09:31:50 -0600 Subject: [PATCH] Remove interpret_puppet_exitcodes This is dead code now. The equivilent function is now in openstack-infra/ansible-puppet Change-Id: I7ba2f0b9da720b72a0a97b27a43a873b29c41ed8 --- launch/utils.py | 21 --------------------- 1 file changed, 21 deletions(-) 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")