On Tue, 2017-09-05 at 20:55 +0200, Roger MÃ¥rtensson wrote: > > No problem. My file is: > ------- top of file ------- > #:ignored: > # - test > > :filters: > - !ruby/regexp '/^(?!role::.*)$/' > ------- bottom of file ------- > > The "---" is of course not part of the file. This should be a > copy-and-paste directly from the documentation.
Yeah, that looks fine. YAML is annoyingly special about whitespace, but that indentation looks ok too. > Not long ago (sorry for not replying earlier) I noticed that I coult > get it to work by adding a .* to the end of the rule just before the > $. So to be clear, (?!role::.*) doesn't work, but (?!role::).* does work? I see the same behaviour on Rubular.com, although I haven't tested it locally yet. Would you be prepared to send a small patch to the docs? > The documentation also states that "It will not delete any > environments or classes already in Foreman." which is false. After > adding the rule (with the ending .*) it asked if I wanted to delete > any of the ignored classes. True, I guess this doc predates when we added the import page offering to remove unfound items - although the removal is unchecked by default, I think. Again, a patch to the docs (or just an issue logged in our issue tracker) would be awesome. Thanks! Greg -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
