*** pmannidi is now known as pmannidi|brb | 01:51 | |
*** pmannidi|brb is now known as pmannidi | 02:39 | |
*** pmannidi is now known as pmannidi|Away | 05:45 | |
*** pmannidi|Away is now known as pmannidi | 05:48 | |
*** pmannidi is now known as pmannidi|Away | 05:48 | |
*** pmannidi|Away is now known as pmannidi | 05:54 | |
*** pmannidi is now known as pmannidi|Away | 05:54 | |
*** pmannidi|Away is now known as pmannidi | 05:55 | |
*** pmannidi is now known as pmannidi|Away | 05:55 | |
*** pmannidi|Away is now known as pmannidi | 05:58 | |
*** pmannidi is now known as pmannidi|Away | 05:58 | |
*** pmannidi|Away is now known as pmannidi | 05:59 | |
*** pmannidi is now known as pmannidi|Away | 05:59 | |
*** pmannidi|Away is now known as pmannidi | 06:08 | |
digitalsimboja | Hello! | 07:44 |
---|---|---|
digitalsimboja | @maysams: Please take a look at below | 07:45 |
digitalsimboja | http://paste.openstack.org/show/807319/ | 07:46 |
digitalsimboja | I am having a challenge getting the ID of the listeners | 07:46 |
digitalsimboja | What am I doing wrong please | 07:48 |
maysams | digitalsimboja: hi, did you check if any listener was actually return from the API call? | 08:36 |
maysams | digitalsimboja: you can try list(listeners) to verify that | 08:37 |
digitalsimboja | I got this data on checking listeners_id | 08:42 |
digitalsimboja | http://paste.openstack.org/show/807320/ | 08:42 |
maysams | okay, so looks like you have the id there | 08:52 |
maysams | digitalsimboja: btw, this code fragment is not getting the ID "listeners_id = [lsnr for lsnr in listeners]" | 09:55 |
digitalsimboja | yeah thats exactly my challenge | 09:55 |
digitalsimboja | I am tying to finding a way to get the Id | 09:55 |
digitalsimboja | Would appreciate any quick step | 10:00 |
digitalsimboja | or any easier way: maysams | 10:00 |
maysams | lsnr['id']? | 10:05 |
maysams | digitalsimboja: ^ | 10:28 |
digitalsimboja | I missed your last messages after I asked | 10:29 |
digitalsimboja | Please reshare | 10:29 |
maysams | lsnr['id']? | 10:33 |
digitalsimboja | That did not return the id | 10:36 |
*** luis5tb is now known as ltomasbo | 10:36 | |
digitalsimboja | see below | 10:39 |
digitalsimboja | Now I got it with this | 10:41 |
digitalsimboja | listeners_id = list(lsnr['id'] for lsnr in listeners) | 10:41 |
digitalsimboja | i tried [lsnr[]'id for lsnr in listeners] initially but did not succeed | 10:42 |
digitalsimboja | Thanks @maysams | 10:42 |
maysams | yw | 11:00 |
opendevreview | Michał Dulko proposed openstack/kuryr-kubernetes master: CNI: Convert bridge driver to use NDB https://review.opendev.org/c/openstack/kuryr-kubernetes/+/800207 | 11:20 |
opendevreview | Michał Dulko proposed openstack/kuryr-kubernetes master: CNI: Convert nested drivers to NDB https://review.opendev.org/c/openstack/kuryr-kubernetes/+/800208 | 11:20 |
digitalsimboja | @maysams: Just a little more help | 14:02 |
digitalsimboja | http://paste.openstack.org/show/807337/ | 14:02 |
digitalsimboja | I need to access the 'id' of the listeners here | 14:02 |
digitalsimboja | @ltomasbo ^ | 14:02 |
maysams | okay.. you have the a list with listener IDs and the link to the CRD both inside a tuple | 14:04 |
ltomasbo | digitalsimboja, yep, you have a tupple + list... not sure if that is what you want to do | 14:04 |
ltomasbo | digitalsimboja, perhaps good if you check some python basics about dealing with objects, dicts, lists, tuples | 14:06 |
ltomasbo | it would help you to understand how to access the different data depending on the type of object you are dealing with | 14:07 |
digitalsimboja | okay | 14:12 |
digitalsimboja | @maysams, @ltomasbo: I got it! | 15:56 |
digitalsimboja | [('7ca0b103-810c-4ce6-8d70-de10299c233a', '/apis/openstack.org/v1/namespaces/default/kuryrloadbalancers/demo'), ('ce3c3d0c-c62c-4dd3-9759-015fc06a4a37', '/apis/openstack.org/v1/namespaces/default/kuryrloadbalancers/test')] | 15:56 |
digitalsimboja | (Pdb) | 15:56 |
digitalsimboja | lsnrs_id = [(l['id'], utils.get_res_link(loadbalancer_crd)) for loadbalancer_crd in loadbalancer_crds for l in loadbalancer_crd.get('status', {}).get('listeners', [])] | 15:56 |
ltomasbo | great! | 16:19 |
opendevreview | Sunday Mgbogu proposed openstack/kuryr-kubernetes master: wip: Loadbalancers reconciliation https://review.opendev.org/c/openstack/kuryr-kubernetes/+/798904 | 20:10 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!