shijl0925 / python-sonarqube-api

Python Client library for interacting with Community, Developer, and Enterprise Editions SonarQube's REST APIs and SonarCloud's REST APIs.
https://python-sonarqube-pro-api.readthedocs.io/en/latest/
GNU Affero General Public License v3.0
133 stars 76 forks source link

AttributeError: 'SonarEnterpriseClient' object has no attribute 'permissions' #87

Closed leofin closed 1 year ago

leofin commented 1 year ago

Hello,

I'm facing an issue that the function permissions don't exist anymore. Can anyone help me?

import os import yaml import re from sonarqube import SonarEnterpriseClient from sonarqube.utils.exceptions import ValidationError, NotFoundError

URL = "https://sonar.example.com" USERNAME = os.environ.get('USERNAME', 'admin') PASSWORD = os.environ.get('PASSWORD') PAGESIZE = 10

sonar = SonarEnterpriseClient(sonarqube_url=URL, username=USERNAME, password=PASSWORD) sonar.permissions Traceback (most recent call last): File "", line 1, in AttributeError: 'SonarEnterpriseClient' object has no attribute 'permissions'

Version 1.3.6 was working.

I checked the code, and it looks like the permissions class is missing.

shijl0925 commented 1 year ago

https://github.com/shijl0925/python-sonarqube-api#editions

leofin commented 1 year ago

Thank you for the fast answer.