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

1.2.0 docs #13

Open
myoung34 opened this issue Jan 26, 2018 · 1 comment
Open

1.2.0 docs #13

myoung34 opened this issue Jan 26, 2018 · 1 comment

Comments

@myoung34
Copy link

myoung34 commented Jan 26, 2018

Im using an unpinned threatstack version, but i tried to rebuild today and saw that user_id is now required.

I dont see any documentation around anything else thats changed, but :

>>> import os
>>> from threatstack import ThreatStack
>>> threatstack_api_key=os.getenv('api_key')
>>> threatstack_org_id=os.getenv('org_id')
>>> threatstack_user_id=os.getenv('user_id')
>>> threatstack_client = ThreatStack(api_key=threatstack_api_key, org_id=threatstack_org_id, user_id=threatstack_user_id)
>>> threatstack_client.servers.list(non_monitored=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Client' object has no attribute 'servers'
@myoung34
Copy link
Author

Also Ive found the new methods:

>>> for server in threatstack_client.ec2servers.list(monitored=False):
...   print(server['id'])
... 
i-...

but its quite surprising to pin to a minor version and find breaking changes from a major semver bump under the hood

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

No branches or pull requests

1 participant