Commit 2e64b13f by Arbab Nazar

Added EBS Volumes Tagging with modification

parent b84c7789
......@@ -6,6 +6,7 @@ import hipchat
import os
import subprocess
import traceback
import socket
# Services that should be checked for migrations.
MIGRATION_COMMANDS = {
......@@ -53,7 +54,7 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(
description="Enable all services that are in the services tag of this ec2 instance.")
parser.add_argument("-a","--available",
help="The location of the available services.")
help="The location of the available services.")
parser.add_argument("-e","--enabled",
help="The location of the enabled services.")
......@@ -114,7 +115,7 @@ if __name__ == '__main__':
play=play,
instance_id=instance_id)
except:
print("Failed to get EDP for {}".format(instance=instance_id))
print("Failed to get EDP for {}".format(instance_id))
#get the hostname of the sandbox
hostname = socket.gethostname()
......@@ -129,7 +130,7 @@ if __name__ == '__main__':
"cluster": play,
"instance-id": instance_id,
"created": volume.create_time })
try:
for service in services_for_instance(instance_id):
if service in MIGRATION_COMMANDS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment