-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import from url #2254
Import from url #2254
Conversation
~name:"import_from" | ||
~in_product_since:rel_dundee | ||
~doc:"Import an XVA from a URI" | ||
~params:[String, "url", "The URL of the XVA file"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find import_from
a bit vague... Can we make it something like import_from_url
? Or simple import
, since we don't actually have that as an API call.
Also, the doc string says URI, but the param has URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, perhaps VM.import
since that name is free (as rob says), plus this
API seems quite general.
On Fri, Jun 12, 2015 at 10:52 AM, Rob Hoes notifications@github.com wrote:
In ocaml/idl/datamodel.ml
#2254 (comment):@@ -2389,6 +2389,19 @@ let vm_call_plugin = call
~allowed_roles:_R_VM_OP
()+let vm_import_from = call
- ~name:"import_from"
- ~in_product_since:rel_dundee
- ~doc:"Import an XVA from a URI"
- ~params:[String, "url", "The URL of the XVA file";
I find import_from a bit vague... Can we make it something like
import_from_url? Or simple import, since we don't actually have that as
an API call.Also, the doc string says URI, but the param has URL.
—
Reply to this email directly or view it on GitHub
https://github.com/xapi-project/xen-api/pull/2254/files#r32303426.
Dave Scott
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Yes, import seems reasonable to me. I'll correct the url/uri disparity too, I had changed my mind over which one to call it...
064c7d4
to
1be1046
Compare
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
1be1046
to
176634a
Compare
to test, try
|
Should import via the CLI fail if the user specifies both |
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Good suggestion, thanks |
! |
sweet :-) |
No description provided.