Add Time to whitelist of classes to load for YAML.safe_load
authorMatt Amos <zerebubuth@gmail.com>
Sun, 5 Feb 2017 19:11:56 +0000 (19:11 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Feb 2017 19:18:59 +0000 (19:18 +0000)
commit23399ca5a40b47ff871252a623339757e1442a0f
tree76f4e7a281b617023ee6f856b5dffcd49ff88e65
parentfceaaf9eb506890fbddbebede753be654fc6a6ad
Add Time to whitelist of classes to load for YAML.safe_load

The update to ruby 2.3.1 pulls in a different version of the YAML / Psych code which doesn't allow the Time class to be loaded in `safe_load`, unlike the previous version. This change whitelists Time, and appears to solve the problem. Since `state.yaml` files are not loaded from the internet, and rarely hand-edited, then this seems like an okay thing to whitelist.
cookbooks/planet/files/default/replication-bin/replicate-changesets