mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-254: Fix exec path for netusage.sh
Fixes the hard coded path in the vmware plugin. The systemvm.iso file would copy the script only to /opt/cloud/bin. Same is the path used for vpc_netusage.sh Signed-off-by: Rohit Yadav <rohit.yadav@citrix.com>
This commit is contained in:
parent
17564da6fb
commit
3e7ba774f9
|
|
@ -4555,12 +4555,12 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
|
||||
try {
|
||||
if (s_logger.isTraceEnabled()) {
|
||||
s_logger.trace("Executing /root/netusage.sh " + args + " on DomR " + privateIpAddress);
|
||||
s_logger.trace("Executing /opt/cloud/bin/netusage.sh " + args + " on DomR " + privateIpAddress);
|
||||
}
|
||||
|
||||
VmwareManager mgr = getServiceContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME);
|
||||
|
||||
Pair<Boolean, String> result = SshHelper.sshExecute(privateIpAddress, DEFAULT_DOMR_SSHPORT, "root", mgr.getSystemVMKeyFile(), null, "/root/netusage.sh " + args);
|
||||
Pair<Boolean, String> result = SshHelper.sshExecute(privateIpAddress, DEFAULT_DOMR_SSHPORT, "root", mgr.getSystemVMKeyFile(), null, "/opt/cloud/bin/netusage.sh " + args);
|
||||
|
||||
if (!result.first()) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue