error in reporting novarc file

Bug #1903364 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance-sync-slave-layer
New
Undecided
Unassigned

Bug Description

Using cs:~canonical-bootstack/glance-sync-slave-5

https://git.launchpad.net/glance-sync-slave-layer/tree/reactive/glance-sync-slave.py?h=community-image#n237

If the context contains three keys:
[{'keystone': {...}, 'db': {...}, 'keystone_master_region': '...'}]

the charm fails to generate the novarc.

change this to
    if len(context.keys()) >= 2:

Revision history for this message
Adam Dyess (addyess) wrote :

Actually, this should be:

    if len(context.keys()) == 3:

all three of these keys should be present.

Revision history for this message
Adam Dyess (addyess) wrote :

if you want to be MORE specific about which keys this should be:

if (set(context.keys()) == {"keystone", "db", "keystone_master_region"})

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.