chore(xen-api/getResource): options are optional
This commit is contained in:
parent
3931c4cf4c
commit
d866bccf3b
@ -592,7 +592,7 @@ export class Xapi extends EventEmitter {
|
||||
}
|
||||
|
||||
@cancelable
|
||||
getResource($cancelToken, pathname, { host, query, task }) {
|
||||
getResource($cancelToken, pathname, { host, query, task } = {}) {
|
||||
return this._autoTask(task, `Xapi#getResource ${pathname}`).then(
|
||||
taskRef => {
|
||||
query = { ...query, session_id: this.sessionId }
|
||||
|
Loading…
Reference in New Issue
Block a user