mirror of
https://github.com/rancher/plugins.git
synced 2025-07-08 20:53:53 +00:00
Merge pull request #364 from pires/build_tag
pkg/utils/sysctl/sysctl_linux.go: couple fixes
This commit is contained in:
commit
fc7de21fe2
@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// build +linux
|
|
||||||
|
|
||||||
package sysctl
|
package sysctl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -26,7 +24,7 @@ import (
|
|||||||
// Sysctl provides a method to set/get values from /proc/sys - in linux systems
|
// Sysctl provides a method to set/get values from /proc/sys - in linux systems
|
||||||
// new interface to set/get values of variables formerly handled by sysctl syscall
|
// new interface to set/get values of variables formerly handled by sysctl syscall
|
||||||
// If optional `params` have only one string value - this function will
|
// If optional `params` have only one string value - this function will
|
||||||
// set this value into coresponding sysctl variable
|
// set this value into corresponding sysctl variable
|
||||||
func Sysctl(name string, params ...string) (string, error) {
|
func Sysctl(name string, params ...string) (string, error) {
|
||||||
if len(params) > 1 {
|
if len(params) > 1 {
|
||||||
return "", fmt.Errorf("unexcepted additional parameters")
|
return "", fmt.Errorf("unexcepted additional parameters")
|
||||||
|
Loading…
Reference in New Issue
Block a user