Closed toddq closed 10 years ago
@toddq thank you so much for this PR!
It looks good to me, besides that small comment I've made here: https://github.com/astratto/vcloud-rest/pull/24#discussion_r11841332
I couldn't find it in the documentation but in this document:
It is stated on page 6:
2.1.4 Support for Uploading Any Content Type Prior vCloud Director versions supported uploading ISO images, Open Virtualization Format (OVF) files and floppy disk images to the catalog. vCloud Director 5.5 now supports uploading any type of file to the catalog.
@tarak ok: "vCloud Director 5.5 now supports uploading any type of file to the catalog". So, I'd say that type could become a parameter that defaults to "iso".
@toddq could you make this small change?
Thanks!
I added type as a parameter, but instead of defaulting to iso opted to use the file's extension if a type value isn't provided.
Looks good. Thank you very much!
I added two new methods, one for adding a new VM from a template in an existing vApp, and one to upload ISO media images to a catalog.