Fixed MeshCMD scripting bug.

This commit is contained in:
Ylian Saint-Hilaire 2019-04-28 19:08:15 -07:00
parent dc90843e5b
commit 99eda04a22
7 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -177,7 +177,7 @@ function WsmanStackCreateService(/*CreateWsmanComm, host, port, user, pass, tls,
}
function _PutObjToSelectorsXml(selectorSet) {
if (!selectorSet) return '';
if ((selectorSet == null) || (selectorSet == 'null')) return '';
if (typeof selectorSet == 'string') return selectorSet;
if (selectorSet['InstanceID']) return "<w:SelectorSet><w:Selector Name=\"InstanceID\">" + selectorSet['InstanceID'] + "</w:Selector></w:SelectorSet>";
var result = '<w:SelectorSet>';

File diff suppressed because one or more lines are too long

View File

@ -177,7 +177,7 @@ function WsmanStackCreateService(/*CreateWsmanComm, host, port, user, pass, tls,
}
function _PutObjToSelectorsXml(selectorSet) {
if (!selectorSet) return '';
if ((selectorSet == null) || (selectorSet == 'null')) return '';
if (typeof selectorSet == 'string') return selectorSet;
if (selectorSet['InstanceID']) return "<w:SelectorSet><w:Selector Name=\"InstanceID\">" + selectorSet['InstanceID'] + "</w:Selector></w:SelectorSet>";
var result = '<w:SelectorSet>';

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.3.3-f",
"version": "0.3.3-g",
"keywords": [
"Remote Management",
"Intel AMT",