Commit 1815b26
fix(fb_apache): render arrays inside of hash configs (facebook#218)
Summary:
## Description
This PR fixes a bug where the `template_hash_handler` in `fb_apache` silently skips over `Array` values. Now these values are rendered as if they were in the top-level `VirtualHost` directive.
For example:
```ruby
{
...
'Location /foo' => {
'Header' => [
'unset Bar',
'unset Baz',
],
...
```
...will now properly include multiple `Header ...` lines in the `Location /foo` directive.
## Impact
These values were ignored previously, so it is possible that it would cause changes in hosts where this was happening.
Pull Request resolved: facebook#218
Differential Revision: D45869664
fbshipit-source-id: 947ec76843416d411d4288c23bba4125de1631851 parent e754f43 commit 1815b26
File tree
4 files changed
+39
-36
lines changed- cookbooks/fb_apache
- libraries
- templates/default
4 files changed
+39
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
46 | 62 | | |
47 | 63 | | |
48 | | - | |
49 | | - | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
53 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | | - | |
| 71 | + | |
56 | 72 | | |
| 73 | + | |
57 | 74 | | |
58 | | - | |
| 75 | + | |
59 | 76 | | |
60 | 77 | | |
61 | | - | |
| 78 | + | |
| 79 | + | |
62 | 80 | | |
63 | 81 | | |
64 | 82 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
0 commit comments