lago-project / lago-images

Image creation and hosting related scripts and configurations
5 stars 6 forks source link

Basic usage fails with a Python error #6

Closed mykaul closed 6 years ago

mykaul commented 8 years ago

Just took the very basic example in the readme:

[ykaul@ykaul lago-images]$ bin/build.py --repo-name myrepo --base-url http://myrepo/
2016-07-20 09:36:10,656::INFO::Creating repo for specs ./image-specs/cirros-base,./image-specs/el6-base,./image-specs/el7-base,./image-specs/el7-iscsi,./image-specs/el7-nfs,./image-specs/fc22-base,./image-specs/fc23-base
Traceback (most recent call last):
  File "bin/build.py", line 655, in <module>
    main(sys.argv[1:])
  File "bin/build.py", line 650, in main
    repo_format=args.repo_format,
  File "bin/build.py", line 515, in generate_repo
    work_batches = get_build_batches(specs, spec_cls)
  File "bin/build.py", line 568, in get_build_batches
    return depsolver.get_batches(nodes)
  File "/home/ykaul/github/lago-images/bin/depsolver.py", line 40, in get_batches
    batches.append(dict(name_to_instance[name] for name in ready))
TypeError: cannot convert dictionary update sequence element #0 to a sequence
mykaul commented 8 years ago

That seems to work on the 'initial-setup' branch vs. the 'initial_working_images' which doesn't. Perhaps we should a 'master' branch as well?

gbenhaim commented 6 years ago

Fixed by https://github.com/lago-project/lago-images/pull/26