Skip to content

Commit 1b05222

Browse files
committed
- Updated README.md to include sonarcloud badge. Formatted badges
- Fixed issue found in sonarcloud analysis
1 parent 3073ade commit 1b05222

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[![Venafi](.github/images/Venafi_logo.png)](https://www.venafi.com/)
2+
23
[![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
34
![Community Supported](https://img.shields.io/badge/Support%20Level-Community-brightgreen)
4-
![Compatible with TPP 17.3+ & VaaS](https://img.shields.io/badge/Compatibility-TPP%2017.3+%20%26%20VaaS-f9a90c)
5+
![Compatible with TPP 17.3+ & VaaS](https://img.shields.io/badge/Compatibility-TPP%2017.3+%20%26%20VaaS-f9a90c)
6+
[![pypi Downloads](https://img.shields.io/pypi/dw/vcert)](https://pypi.org/project/vcert/)
7+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Venafi_vcert-python&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Venafi_vcert-python)
8+
59
_**This open source project is community-supported.** To report a problem or share an idea, use
610
**[Issues](../../issues)**; and if you have a suggestion for fixing the issue, please include those details, too.
711
In addition, use **[Pull Requests](../../pulls)** to contribute actual bug fixes or proposed enhancements.

vcert/policy/pm_tpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def validate_default_subject(policy_spec):
468468
if s.states[0] != ds.state:
469469
raise VenafiError(no_match_error_msg.format('states', ds.state, s.states[0]))
470470

471-
if s.countries and s.countries and ds.country:
471+
if s.countries and s.countries[0] and ds.country:
472472
if s.countries[0] != ds.country:
473473
raise VenafiError(no_match_error_msg.format('countries', ds.country, s.countries[0]))
474474

0 commit comments

Comments
 (0)