Paul Holzinger
205c8c071e
fix podman container restore without CreateNetNS
...
When a container does not use the default podman netns, for example
--network none or --network ns:/path a restore would fail because the
specgen check validates that c.config.StaticMAC is nil but the
unmarshaller sets it to an empty slice.
While we could make the check use len() > 0 I feel like it is more
common to check with != nil for ip and mac addresses.
Adding omitempty tag makes the json marshal/unmarshal work correctly.
This should not cause any issues.
Fixes #14389
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-05-31 16:49:40 +02:00
..
2022-03-22 13:04:35 +01:00
2022-05-27 10:55:35 -04:00
2022-01-18 12:47:07 +01:00
2022-05-25 12:26:43 +02:00
2017-11-01 11:24:59 -04:00
2022-03-18 09:11:53 +01:00
2022-05-05 21:09:41 +08:00
2022-04-26 18:12:22 +02:00
2022-05-25 14:10:02 -04:00
2021-10-12 09:53:19 -07:00
2022-05-02 13:23:16 +02:00
2022-03-18 09:11:53 +01:00
2022-05-23 11:21:15 -04:00
2022-01-18 12:47:07 +01:00
2022-05-26 16:31:15 -07:00
2022-02-23 17:38:28 +05:30
2022-05-31 16:49:40 +02:00
2022-05-26 16:31:15 -07:00
2022-05-25 13:28:04 -04:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-05-17 10:18:58 +02:00
2022-05-05 21:09:41 +08:00
2022-05-25 13:28:04 -04:00
2022-05-05 21:39:46 +08:00
2022-05-02 13:29:59 +02:00
2022-03-18 09:11:53 +01:00
2022-04-13 14:07:15 -04:00
2022-03-29 17:29:13 +02:00
2022-03-29 17:29:13 +02:00
2022-03-23 19:05:29 +01:00
2022-04-26 18:12:22 +02:00
2022-05-24 13:40:02 +02:00
2022-05-17 10:18:58 +02:00
2022-05-25 13:28:04 -04:00
2022-05-23 13:59:05 +02:00
2022-03-23 19:05:29 +01:00
2022-05-23 14:11:29 +02:00
2022-04-22 12:51:29 +02:00
2022-02-04 21:15:03 +05:30
2022-05-14 00:34:56 +00:00
2022-05-26 15:46:04 -07:00
2022-05-23 12:16:54 -04:00
2022-03-18 09:11:53 +01:00
2022-04-25 13:23:20 +02:00
2022-05-23 12:16:54 -04:00
2022-04-26 18:12:22 +02:00
2022-04-26 18:12:22 +02:00
2022-05-04 15:43:12 +02:00
2022-05-06 15:59:06 -04:00
2022-05-12 11:11:37 +02:00
2020-06-25 17:16:12 +02:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-05-23 12:16:54 -04:00
2022-05-25 14:10:02 -04:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-05-25 12:30:19 +02:00
2022-05-12 10:51:13 +02:00
2022-02-03 13:14:07 +01:00
2022-02-22 11:05:26 -05:00
2022-05-23 12:16:54 -04:00
2022-05-12 10:51:13 +02:00
2022-04-25 13:23:20 +02:00
2022-05-12 10:51:13 +02:00
2022-05-23 12:16:54 -04:00
2022-05-23 14:11:29 +02:00
2022-04-28 13:29:01 +02:00
2022-02-22 11:05:26 -05:00
2022-05-25 10:17:46 +02:00
2022-05-25 14:10:02 -04:00
2022-05-17 10:18:58 +02:00
2022-01-18 12:47:07 +01:00
2022-01-12 17:07:30 +01:00
2022-03-22 17:44:58 +01:00
2022-01-18 12:47:07 +01:00
2020-09-13 23:24:15 -04:00
2022-03-18 09:11:53 +01:00
2022-01-18 12:47:07 +01:00
2022-04-29 14:06:38 +02:00
2022-01-18 12:47:07 +01:00
2022-02-28 14:26:22 -05:00
2022-04-28 13:29:01 +02:00
2022-04-28 13:29:01 +02:00