Commit a516476
committed
Fix given_or_derived behavior in Pops object init_hash
In create_init_hash_type the type specification for an init
hash is built. Currently a given_or_derived type is always
defined as a required init_hash attribute, which defeats
the ability to leave it unspecified and use the derived
value defaults.
By defining given_or_derived types always as optional it
allows passing a value in the init_hash or leaving it out
and using the derived value.1 parent de1f7e4 commit a516476
File tree
2 files changed
+8
-8
lines changed- lib/puppet/pops/types
- spec/unit/pops/types
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
| 879 | + | |
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | | - | |
| 700 | + | |
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
705 | | - | |
706 | | - | |
| 704 | + | |
| 705 | + | |
707 | 706 | | |
708 | 707 | | |
709 | 708 | | |
710 | 709 | | |
711 | | - | |
712 | 710 | | |
713 | 711 | | |
714 | 712 | | |
715 | 713 | | |
716 | 714 | | |
717 | 715 | | |
718 | 716 | | |
719 | | - | |
| 717 | + | |
| 718 | + | |
720 | 719 | | |
721 | 720 | | |
722 | 721 | | |
723 | 722 | | |
724 | | - | |
| 723 | + | |
| 724 | + | |
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| |||
0 commit comments