delfick / bespin

Opinionated wrapper around boto that reads yaml
MIT License
6 stars 8 forks source link

Stacktrace when stack_yaml and stack_json not found. #55

Closed atward closed 7 years ago

atward commented 7 years ago

Something unexpected happened!! Please file a ticket in the issue tracker! None
===============================================================================

Traceback (most recent call last):
  File "/usr/local/bin/bespin", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/delfick_app.py", line 188, in main
    app.mainline(argv, **execute_args)
  File "/usr/local/lib/python2.7/site-packages/delfick_app.py", line 260, in mainline
    self.execute(args_obj, args_dict, extra_args, handler, **execute_args)
  File "/usr/local/lib/python2.7/site-packages/bespin/executor.py", line 31, in execute
    collector.configuration["task_runner"](collector.configuration["bespin"].chosen_task)
  File "/usr/local/lib/python2.7/site-packages/bespin/task_finder.py", line 20, in task_runner
    return self.tasks[task].run(self.collector, self.stack_finder(task), available_actions, self.tasks, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bespin/option_spec/task_objs.py", line 108, in run
    return task_action(collector, stack=stack, artifact=artifact, tasks=tasks, **extras)
  File "/usr/local/lib/python2.7/site-packages/bespin/actions.py", line 106, in deploy
    Deployer().deploy_stack(stack, collector.configuration["stacks"])
  File "/usr/local/lib/python2.7/site-packages/bespin/operations/deployer.py", line 26, in deploy_stack
    Builder().sanity_check(stack, stacks, ignore_deps=ignore_deps, checked=checked)
  File "/usr/local/lib/python2.7/site-packages/bespin/operations/builder.py", line 17, in sanity_check
    stack.sanity_check()
  File "/usr/local/lib/python2.7/site-packages/bespin/option_spec/stack_objs.py", line 350, in sanity_check
    self.validate_template_params()
  File "/usr/local/lib/python2.7/site-packages/bespin/option_spec/stack_objs.py", line 314, in validate_template_params
    validation = self.validate_template()
  File "/usr/local/lib/python2.7/site-packages/bespin/option_spec/stack_objs.py", line 309, in validate_template
    fle.write(self.dumped_stack_obj)
  File "/usr/local/lib/python2.7/site-packages/bespin/option_spec/stack_objs.py", line 223, in dumped_stack_obj
    return json.dumps(self.stack_obj)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 244, in dumps
    return _default_encoder.encode(obj)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 270, in iterencode
    return _iterencode(o, 0)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 184, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <class 'input_algorithms.spec_base.NotSpecified'> is not JSON serializable