Giter VIP home page Giter VIP logo

Comments (6)

silug avatar silug commented on August 21, 2024 1

If it helps, I generated a module with the steps necessary to demonstrate the issue at https://github.com/silug/issue_543.

from pdk-templates.

jordanbreen28 avatar jordanbreen28 commented on August 21, 2024

thanks for raising this @silug.
I've raised #544, if you get a moment could you update the template ref to that PR branch

  "template-url": "https://github.com/puppetlabs/pdk-templates#gh-543-fix_networking_facts_merge",
  "template-ref": "remotes/origin/gh-543-fix_networking_facts_merge-0-gcb66796"

run pdk update and let me know how that works out?
Thanks again

from pdk-templates.

silug avatar silug commented on August 21, 2024

@jordanbreen28 That change does not appear to affect the behavior. I'm guessing the add_custom_fact function is where the change needs to happen. I'm not sure where that's coming from though.

from pdk-templates.

jordanbreen28 avatar jordanbreen28 commented on August 21, 2024

@jordanbreen28 That change does not appear to affect the behavior. I'm guessing the add_custom_fact function is where the change needs to happen. I'm not sure where that's coming from though.

@silug From what I can see, add_custom_fact is being pulled in from rspec-puppet-facts.

What's good is your initial point still stands, we definitely should have been deep merging by default in spec_helper.rb.erb to allow using nested facts in default_facts.yml without overriding the entire fact, so thanks for bringing that up.

Just need to get thinking about the best way to proceed here.

It's an interesting one; nice catch!

from pdk-templates.

jordanbreen28 avatar jordanbreen28 commented on August 21, 2024

@silug fwiw I had raised this before, but we paused it due to some unexpected behaviour we were seeing.
Looks like we may need to pick it back up

from pdk-templates.

jay7x avatar jay7x commented on August 21, 2024

Just hit that with PDK templates v3.0.1. Can we maybe delete the default_facts.yml completely and suggest to use rspec-puppet-facts way by default?

from pdk-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.