Skip to content
Browse files

Fixed bundle image script

  • Loading branch information...
1 parent 6275efb commit b61facbdd2c34ffe1a47e125846e6fd072330e06 kopertop committed Feb 25, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/bundle_image
View
3 bin/bundle_image
@@ -12,6 +12,7 @@ if __name__ == "__main__":
parser.add_option("-s", "--size", help="AMI Size", dest="size", default=None)
parser.add_option("-i", "--ssh-key", help="SSH Keyfile", dest="ssh_key", default=None)
parser.add_option("-u", "--user-name", help="SSH Username", dest="uname", default="root")
+ parser.add_option("-n", "--name", help="Name of Image", dest="name")
(options, args) = parser.parse_args()
for instance_id in args:
@@ -20,7 +21,7 @@ if __name__ == "__main__":
print "Found old server object"
except StopIteration:
print "New Server Object Created"
- s = Server.create_from_instance_id(instance_id)
+ s = Server.create_from_instance_id(instance_id, options.name)
assert(s.hostname is not None)
b = s.get_bundler(uname=options.uname)
b.bundle(bucket=options.bucket,prefix=options.prefix,key_file=options.key_file,cert_file=options.cert_file,size=int(options.size),ssh_key=options.ssh_key)

0 comments on commit b61facb

Please sign in to comment.
Something went wrong with that request. Please try again.