Skip to content

Conversation

@garymsegal
Copy link
Contributor

Added '-cp --create-project' to create the project and version if they do not already exist on the Black Duck instance.


hub = HubInstance(url_base, api_token=api_token, insecure=True, write_config_flag=False)

project_version = hub.get_project_version_by_name(args.project_name, args.version)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good enhancement. Did you consider using get_or_create_project_version which might simplify the code quite a bit?

@gsnyder2007 gsnyder2007 merged commit d9fac06 into blackducksoftware:master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants