当我对小兵salt-call sys.list_modules --output=json
执行命令时,
输出是:
[INFO ] Executing command 'npm --version' in directory '/root'
{
"local": [
"acl",
"aliases",
"alternatives",
"apache",
"archive",
...
"user",
"vbox_guest",
"virtualenv",
"webutil",
"xfs"
]
}
我不知道为什么它包含这个:
[INFO ] Executing command 'npm --version' in directory '/root'
tail -f /var/log/salt/minion
2016-11-29 18:04:37,669 [salt.modules.cmdmod][INFO ][2598] Executing command 'npm --version' in directory '/root'
2016-11-29 18:05:33,742 [salt.modules.cmdmod][INFO ][2804] Executing command 'npm --version' in directory '/root'
2016-11-29 18:06:15,550 [salt.modules.cmdmod][INFO ][2946] Executing command 'npm --version' in directory '/root'
2016-11-29 18:07:28,020 [salt.modules.cmdmod][INFO ][3053] Executing command 'npm --version' in directory '/root'
2016-11-29 18:07:56,166 [salt.modules.cmdmod][INFO ][3102] Executing command 'npm --version' in directory '/root'
2016-11-29 18:08:59,328 [salt.modules.cmdmod][INFO ][3238] Executing command 'npm --version' in directory '/root'
2016-11-29 18:09:41,690 [salt.modules.cmdmod][INFO ][3312] Executing command 'npm --version' in directory '/root'
salt-minion 2016.3.1(Boron)
1.3.6