Skip to content

Commit

Permalink
Generating getVcpusFlags as an example/poc
Browse files Browse the repository at this point in the history
  • Loading branch information
RamyElkest committed May 27, 2018
1 parent 5eaeec0 commit 14df741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let allowed_functions = {
'virDomainGetID': 'domain',
'virDomainCreateXML': 'host',
'virDomainGetOSType': 'domain',
'virDomainGetVcpusFlags': 'domain',
};

module.exports = {
Expand Down
1 change: 1 addition & 0 deletions test/domain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ let test_xml = `
let conn = libvirt.open('test:///default');
let domain = conn.createXML(xml, 0);
assert.strictEqual(domain.getOSType(), "linux");
assert.strictEqual(domain.getVcpusFlags(0), 1);
})(test_xml);

0 comments on commit 14df741

Please # to comment.