This patch fixes the warning when datapath-windows/misc/OVS.psm1 is
imported.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Reported-by: Hemanth Kumar Mantri <mantri@nutanix.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/69
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
-Copyright 2014 Cloudbase Solutions Srl
+Copyright 2014, 2015 Cloudbase Solutions Srl
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
$retVal = $vsms.ModifyResourceSettings(@($sd.GetText(1)))
try
{
$retVal = $vsms.ModifyResourceSettings(@($sd.GetText(1)))
try
{
- Check-WMIReturnValue $retVal
+ CheckWMIReturnValue $retVal
-function Check-WMIReturnValue($retVal)
+function CheckWMIReturnValue($retVal)
{
if ($retVal.ReturnValue -ne 0)
{
{
if ($retVal.ReturnValue -ne 0)
{
$vnic[0] | Set-VMNetworkAdapterOVSPort -OVSPortName $OVSPortName
}
}
$vnic[0] | Set-VMNetworkAdapterOVSPort -OVSPortName $OVSPortName
}
}
+
+Export-ModuleMember -function Set-*, Get-*