Skip to content

Conversation

@AsisBagga
Copy link
Contributor

Description

updated resource label

Issues Resolved

[List any issues this PR will resolve. e.g., Fixes #1]

Check List

  • New functionality includes testing.
    • All tests pass for Python 2.7+ & 3.4+($ tox).
  • New functionality has been documented in the README if applicable.
    • New functionality has been thoroughly documented in the examples (please include helpful comments).
    • New endpoints supported are updated in the endpoints-support.md file.
  • Changes are documented in the CHANGELOG file.


config = {
"ip": "172.16.102.59",
"ip": "10.1.20.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

can you give dummy credentials rather than our dcs credentials?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Labels:
"""
if not self.__labels:
'''if not self.__labels:
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove these commented lines (977 to 979)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

"""
return self._client.get(id_or_uri=id_or_uri)
uri = self.URI + self.RESOURCES_PATH
resource_data = self._helper.create(resource, uri=uri, timeout=timeout)
Copy link
Contributor

@VenkateshRavula VenkateshRavula Apr 7, 2021

Choose a reason for hiding this comment

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

instead of using the create method in resource_helper class, you can try using it from resource class itself as mentioned below. And you can remove below 2 lines.

return super(Labels, self).create(data, uri=uri, timeout=timeout)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

"""
uri = self.URI + self.RESOURCES_PATH + '/' + resource_uri
return self._client.get(id_or_uri=uri)
return self.get_by_uri(uri)
Copy link
Contributor

Choose a reason for hiding this comment

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

we usually use super class as below.

return super(Labels, self).get_by_uri(uri)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@AsisBagga AsisBagga merged commit 466c13f into master Apr 7, 2021
@AsisBagga AsisBagga deleted the labels branch September 1, 2021 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants