Browse code

Remove unused argument from verifyPlatformContainerSettings

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2018/12/19 07:20:17
Showing 3 changed files
... ...
@@ -345,7 +345,7 @@ func (daemon *Daemon) verifyContainerSettings(platform string, hostConfig *conta
345 345
 	}
346 346
 
347 347
 	// Now do platform-specific verification
348
-	warnings, err = verifyPlatformContainerSettings(daemon, hostConfig, config, update)
348
+	warnings, err = verifyPlatformContainerSettings(daemon, hostConfig, update)
349 349
 	for _, w := range warnings {
350 350
 		logrus.Warn(w)
351 351
 	}
... ...
@@ -560,7 +560,7 @@ func UsingSystemd(config *config.Config) bool {
560 560
 
561 561
 // verifyPlatformContainerSettings performs platform-specific validation of the
562 562
 // hostconfig and config structures.
563
-func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.HostConfig, config *containertypes.Config, update bool) (warnings []string, err error) {
563
+func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.HostConfig, update bool) (warnings []string, err error) {
564 564
 	sysInfo := sysinfo.New(true)
565 565
 
566 566
 	w, err := verifyContainerResources(&hostConfig.Resources, sysInfo, update)
... ...
@@ -186,7 +186,7 @@ func verifyContainerResources(resources *containertypes.Resources, isHyperv bool
186 186
 
187 187
 // verifyPlatformContainerSettings performs platform-specific validation of the
188 188
 // hostconfig and config structures.
189
-func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.HostConfig, config *containertypes.Config, update bool) (warnings []string, err error) {
189
+func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.HostConfig, update bool) (warnings []string, err error) {
190 190
 	osv := system.GetOSVersion()
191 191
 	hyperv := daemon.runAsHyperVContainer(hostConfig)
192 192