~vcs-imports/elasticfox/trunk

« back to all changes in this revision

Viewing changes to src/chrome/content/ec2ui/instancesview.js

  • Committer: jhatax
  • Date: 2009-04-30 22:09:42 UTC
  • Revision ID: vcs-imports@canonical.com-20090430220942-gzxmtpi125j555kp
Changes in this release:

1. Delete & Deregister AMI added to Elasticfox.
   Choosing this option erases all traces of the AMI from S3 before
   deregistering the AMI from EC2
2. A bug that prevented migrated images from being registered has been fixed
3. An AMI that is being migrated can't be deleted
4. S3 DELETE functionality has been added to Elasticfox
5. Bundling Instances should now work for all bucket/prefix combinations


M    src/install.rdf
M    src/chrome/content/ec2ui/controller.js
A    src/chrome/content/ec2ui/deleteamidialog.js
M    src/chrome/content/ec2ui/client.js
M    src/chrome/content/ec2ui/instancesview.js
M    src/chrome/content/ec2ui/newinstancesdialog.js
M    src/chrome/content/ec2ui/dialog_copy_S3_keys.xul
M    src/chrome/content/ec2ui/copyS3dialog.js
M    src/chrome/content/ec2ui/amisview.js
M    src/chrome/content/ec2ui/images_tab_overlay.xul
A    src/chrome/content/ec2ui/dialog_delete_ami.xul

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
                if (retVal.ok) {
171
171
                    var reg = getActiveRegion(ec2ui_session.getActiveEndpoint());
172
172
                    var bucketReg = ec2ui_session.controller.getS3BucketLocation(retVal.bucketName);
 
173
                    bucketReg = bucketReg.toLowerCase();
173
174
                    log(reg + ": active region ");
174
175
                    log(bucketReg + ": bucket's region ");
175
176
                    retVal.ok = (reg == bucketReg);
181
182
 
182
183
                // Determine whether the user owns the specified bucket
183
184
                if (retVal.ok) {
 
185
                    var region = this.getS3BucketLocation(retVal.bucketName);
 
186
                    log("Bucket Region: " + region);
 
187
 
184
188
                    retVal.ok = ec2ui_session.controller.writeS3KeyInBucket(retVal.bucketName,
185
189
                                                                            retVal.prefix + ".manifest.xml",
186
 
                                                                            "elasticfox-write-test");
 
190
                                                                            "elasticfox-write-test",
 
191
                                                                            region);
187
192
 
188
193
                    if (!retVal.ok) {
189
194
                        alert ("ERROR: It appears that you don't have write permissions on the bucket: " + retVal.bucketName);