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

CSV Import use Contains in Assign_filter #8

Closed
Simkimdm opened this issue May 4, 2017 · 1 comment
Closed

CSV Import use Contains in Assign_filter #8

Simkimdm opened this issue May 4, 2017 · 1 comment

Comments

@Simkimdm
Copy link

Simkimdm commented May 4, 2017

Hi,

is it possible to use the contains string while importing Services from csv via the assign_filter attribute?
My CSV:
'apply_name','service_name','assign_where'
'port-channel1','Service-NWC-Interface-Health-extra-Port-Channel','host.vars.monitoring_interfaces contains port-channel1'
I tried "==" as well as "in", but it throws errors.

The normal assignment is like:
assign where "port-channel1" in host.vars.monitoring_interfaces

Best regards

@Thomas-Gelf
Copy link
Contributor

Hi @Simkimdm,

and sorry for the late reply. Setting assign_filter via sync is currently not documented and officially not supported. It should work, as i know from people doing so in a hacky way. We'll definitively document, sharpen and clearly specify an interface for assign_filter's. Please feel free to open a related Director issue as a reminder. In the meantime please forgive me that I'll refuse to document existing hacks. Main reason is that the final API might break those hacks, and I do not want to be held responsible for that ;-)

I'll close this issue so far, as the problem cannot be solved by the fileshipper module.

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

2 participants