summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2012-12-28 10:14:12 +1300
committerSteve Baker <sbaker@redhat.com>2012-12-28 10:14:12 +1300
commitd8a6d6e74144401838b848de3d9ba0d0fb3fd6d9 (patch)
tree64b564e09e0b7110c5f17cb47cf5c23fc7814b19 /bin
parent2f412a364aee7be5773f90534f44656383cac348 (diff)
downloadheat-cfntools-d8a6d6e74144401838b848de3d9ba0d0fb3fd6d9.tar.gz
Always import cfn_helper from heat_cfntools.cfntools
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cfn-get-metadata6
-rwxr-xr-xbin/cfn-hup6
-rwxr-xr-xbin/cfn-init6
-rwxr-xr-xbin/cfn-push-stats6
-rwxr-xr-xbin/cfn-signal6
5 files changed, 5 insertions, 25 deletions
diff --git a/bin/cfn-get-metadata b/bin/cfn-get-metadata
index d8d4006..8c88e0c 100755
--- a/bin/cfn-get-metadata
+++ b/bin/cfn-get-metadata
@@ -23,11 +23,7 @@ import os.path
import sys
-if os.path.exists('/opt/aws/bin'):
- sys.path.insert(0, '/opt/aws/bin')
- from cfn_helper import *
-else:
- from heat_cfntools.cfntools.cfn_helper import *
+from heat_cfntools.cfntools.cfn_helper import *
description = " "
parser = argparse.ArgumentParser(description=description)
diff --git a/bin/cfn-hup b/bin/cfn-hup
index 8487753..9e31a52 100755
--- a/bin/cfn-hup
+++ b/bin/cfn-hup
@@ -23,11 +23,7 @@ import os.path
import sys
-if os.path.exists('/opt/aws/bin'):
- sys.path.insert(0, '/opt/aws/bin')
- from cfn_helper import *
-else:
- from heat_cfntools.cfntools.cfn_helper import *
+from heat_cfntools.cfntools.cfn_helper import *
description = " "
parser = argparse.ArgumentParser(description=description)
diff --git a/bin/cfn-init b/bin/cfn-init
index 4af16c6..72f499a 100755
--- a/bin/cfn-init
+++ b/bin/cfn-init
@@ -21,11 +21,7 @@ import os
import sys
-if os.path.exists('/opt/aws/bin'):
- sys.path.insert(0, '/opt/aws/bin')
- from cfn_helper import *
-else:
- from heat_cfntools.cfntools.cfn_helper import *
+from heat_cfntools.cfntools.cfn_helper import *
description = " "
parser = argparse.ArgumentParser(description=description)
diff --git a/bin/cfn-push-stats b/bin/cfn-push-stats
index 51f490f..6fe085f 100755
--- a/bin/cfn-push-stats
+++ b/bin/cfn-push-stats
@@ -41,11 +41,7 @@ except ImportError:
LOG.warn("psutil not available. If you want process and memory "
"statistics, you need to install it.")
-if os.path.exists('/opt/aws/bin'):
- sys.path.insert(0, '/opt/aws/bin')
- from cfn_helper import *
-else:
- from heat_cfntools.cfntools.cfn_helper import *
+from heat_cfntools.cfntools.cfn_helper import *
KILO = 1024
MEGA = 1048576
diff --git a/bin/cfn-signal b/bin/cfn-signal
index 6fd08a5..4685c9b 100755
--- a/bin/cfn-signal
+++ b/bin/cfn-signal
@@ -21,11 +21,7 @@ import os
import sys
-if os.path.exists('/opt/aws/bin'):
- sys.path.insert(0, '/opt/aws/bin')
- from cfn_helper import *
-else:
- from heat_cfntools.cfntools.cfn_helper import *
+from heat_cfntools.cfntools.cfn_helper import *
description = " "