Skip to content

Commit b61facb

Browse files
author
kopertop
committed
Fixed bundle image script
1 parent 6275efb commit b61facb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/bundle_image

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if __name__ == "__main__":
1212
parser.add_option("-s", "--size", help="AMI Size", dest="size", default=None)
1313
parser.add_option("-i", "--ssh-key", help="SSH Keyfile", dest="ssh_key", default=None)
1414
parser.add_option("-u", "--user-name", help="SSH Username", dest="uname", default="root")
15+
parser.add_option("-n", "--name", help="Name of Image", dest="name")
1516
(options, args) = parser.parse_args()
1617

1718
for instance_id in args:
@@ -20,7 +21,7 @@ if __name__ == "__main__":
2021
print "Found old server object"
2122
except StopIteration:
2223
print "New Server Object Created"
23-
s = Server.create_from_instance_id(instance_id)
24+
s = Server.create_from_instance_id(instance_id, options.name)
2425
assert(s.hostname is not None)
2526
b = s.get_bundler(uname=options.uname)
2627
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 commit comments

Comments
 (0)