Browse code

remove redundant 'Get' for MacAddress

remove second redundant call to set MacAddress from env

Signed-off-by: Andrew Clay Shafer <andrewcshafer@gmail.com>

Andrew Clay Shafer authored on 2015/01/09 11:09:23
Showing 1 changed files
... ...
@@ -544,7 +544,6 @@ func (container *Container) AllocateNetwork() error {
544 544
 	container.NetworkSettings.IPPrefixLen = env.GetInt("IPPrefixLen")
545 545
 	container.NetworkSettings.MacAddress = env.Get("MacAddress")
546 546
 	container.NetworkSettings.Gateway = env.Get("Gateway")
547
-	container.NetworkSettings.MacAddress = env.Get("MacAddress")
548 547
 	container.NetworkSettings.LinkLocalIPv6Address = env.Get("LinkLocalIPv6")
549 548
 	container.NetworkSettings.LinkLocalIPv6PrefixLen = 64
550 549
 	container.NetworkSettings.GlobalIPv6Address = env.Get("GlobalIPv6")