Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

[WIP] Allow disabling service access. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmcarp
Copy link

@jmcarp jmcarp commented Mar 29, 2017

I still need to do more testing on this, but I thought I would send in a WIP in case you have feedback before this is finished.

cc @LinuxBozo

[Resolves #14]

for _, serviceAccessSrc := range servicesAccessSrc {
if !c.containsServiceAccess(servicesAccessDest, serviceAccessSrc) {
exists := c.containsServiceAccess(servicesAccessMapDest, serviceAccessSrc)
if (!exists && !serviceAccessSrc.Disable) ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the condition just should be if !exists || serviceAccessSrc.Disable, am I missing something ?

@ArthurHlt
Copy link
Member

I like the idea with the a simple map, i've just put on comment but all seems good to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants