Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container Repository samples issues #19010

Closed
v-xuto opened this issue May 31, 2021 · 1 comment
Closed

Container Repository samples issues #19010

v-xuto opened this issue May 31, 2021 · 1 comment
Labels
Client This issue points to a problem in the data-plane of the library. needs-team-triage Workflow: This issue needs the team to triage. test-manual-pass

Comments

@v-xuto
Copy link
Member

v-xuto commented May 31, 2021

Section link1:
image

Reason1:
for tag in tags[3:]:
TypeError: 'ItemPaged' object is not subscriptable.

Suggestion1:
Update to:

for tag in client.list_tag_properties(repository, order_by=TagOrder.LAST_UPDATE_TIME_DESCENDING):
    tag_count += 1
    if tag_count > 3:
        client.delete_tag(repository, tag.name)   

Suggestion2:
Add code:

if __name__ == "__main__":
    sample = DeleteOperations()
    sample.delete_old_tags()   

Section link:
image

Suggestion:
Add await before sample.delete_old_tags().

@jongio for notification.

@v-xuto v-xuto added Client This issue points to a problem in the data-plane of the library. needs-team-triage Workflow: This issue needs the team to triage. test-manual-pass Container Repository labels May 31, 2021
@v-xuto
Copy link
Member Author

v-xuto commented Jul 7, 2021

Close this issue, due to PR #19661 merged.

@v-xuto v-xuto closed this as completed Jul 7, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 1, 2022
Corect duplicate parent references in timeseriesinsights@2018-08-15-preview (Azure#19010)

* Corect duplicate parent references in timeseriesinsights@2018-08-15-preview

* Remove invalid x-ms-discriminator-value extensions
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. needs-team-triage Workflow: This issue needs the team to triage. test-manual-pass
Projects
None yet
Development

No branches or pull requests

1 participant