Skip to content

[Bug]: Issue when creating new environment #241

@asa1997

Description

@asa1997

Contribution guidelines

Description

Getting error message while creating a new environment

Expected behaviour

NA

Actual behaviour

NA

Steps to reproduce

  1. Install BeSman from Be-Secure namespace develop branch.
  2. Run bes create command

Relevant screenshots

Image

Possible Solution

No response

Additional Information

$ bes create -env test-RT-env -V 0.0.1 basic
Variable 'BESMAN_LOCAL_ENV' value updated to 'true'
File exists with the same name under /home/arunsuresh/o31e/besecure-ce-env-repo/test/0.0.1/besman-test-RT-env.sh
Do you wish to overwrite (y/n)?: y
Creating env file..
Config file besman-test-RT-env-config.yaml exists under /home/arunsuresh/o31e/besecure-ce-env-repo/test/0.0.1
 Do you wish to replace?(y/n): y
Creating new config file /home/arunsuresh/o31e/besecure-ce-env-repo/test/0.0.1/besman-test-RT-env-config.yaml

Updating metadata...
Enter the author details
Enter author name:o31e
Enter author type(Lab/User/Organization):Lab
https://raw.githubusercontent.com/asa1997/besecure-playbooks-store/naming/playbook-metadata.json
Traceback (most recent call last):
  File "/home/arunsuresh/.besman/scripts/besman-get-playbook-details.py", line 148, in <module>
    get_master_list()
  File "/home/arunsuresh/.besman/scripts/besman-get-playbook-details.py", line 15, in get_master_list
    save_playbook_details_to_file(data['playbooks'])
  File "/home/arunsuresh/.besman/scripts/besman-get-playbook-details.py", line 90, in save_playbook_details_to_file
    details = f"{playbook['name']} {playbook['intent']} {playbook['version']} {playbook['type']} {playbook['author']['name']} {playbook['description']}\n"
KeyError: 'intent'
Error while fetching playbook details

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions