Skip to content

Commit

Permalink
Merge pull request #111 from PagerDuty/T2D2-275-All-contacts-not-bein…
Browse files Browse the repository at this point in the history
…g-returned-w-pagination-error

change iter_all to rget
  • Loading branch information
JosefGoodyear authored Feb 13, 2024
2 parents e9b97b6 + 653753b commit 3829752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_info_on_all_users/contact_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def print_contact_methods(user, session, csv):
'email': None,
'push': None,
}
for contact_method in session.iter_all('users/%s/contact_methods'%user['id']):
for contact_method in session.rget('users/%s/contact_methods'%user['id']):
if 'phone' in contact_method['type']:
contacts['phone'] = '%s %s'%(contact_method['country_code'], contact_method['address'])
elif 'sms' in contact_method['type']:
Expand Down

0 comments on commit 3829752

Please sign in to comment.