Skip to content

Unable to get the Susbcription's expiry date. #250

Description

@pymstrio-explorer

While I try to the Susbcription's expiry date. I see an error, Is it possible to get the expiry date BTW?

`from mstrio.connection import Connection
from mstrio.distribution_services import Subscription

conn = Connection(BASE_URL, USERNAME, PASSWORD, login_mode=1)
sub = Subscription(conn, id=SUBSCRIPTION_ID)

print(f"Subscription: {sub.name}")
print(f"Expiry Date: {sub.schedules[0].expiration.expiration_date}")`

(Script evaluation failed, error:Traceback (most recent call last):
File "", line 62, in
File "/opt/mount/lib64/python3.13/site-packages/mstrio/utils/entity.py", line 1173, in getattribute
val = super().getattribute(name)
AttributeError: 'Schedule' object has no attribute 'expiration')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions