Commit d900a1b
Nicolas Lacasse
network.id should look for attrs "Id" and "id"...
...before falling back to a synthetic id based on the hash of the
network name.
Checking both is needed to support the Docker-compatible format ("Id")
and Libpod-native format ("id").
This is analagous to how podman-py handles network.name -- we check
attrs "Name" and "name" in that order.
Fixes #5841 parent 34409e8 commit d900a1b
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
0 commit comments