mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-03 15:18:01 +00:00
Fix ERROR: network must be a mapping, not an array.
This commit is contained in:
@@ -10,14 +10,14 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
struct = {}
|
struct = {}
|
||||||
networks = set()
|
networks = {}
|
||||||
for cname in args.cnames:
|
for cname in args.cnames:
|
||||||
cfile, c_networks = generate(cname)
|
cfile, c_networks = generate(cname)
|
||||||
|
|
||||||
struct.update(cfile)
|
struct.update(cfile)
|
||||||
networks.update(c_networks)
|
networks.update(c_networks)
|
||||||
|
|
||||||
render(struct, args, list(networks))
|
render(struct, args, networks)
|
||||||
|
|
||||||
|
|
||||||
def render(struct, args, networks):
|
def render(struct, args, networks):
|
||||||
|
|||||||
Reference in New Issue
Block a user