Jira (PUP-9154) Can't load catalog that was previously saved as yaml

6 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Jun 15, 2021, 1:26:02 AM6/15/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Puppet / Bug PUP-9154
Can't load catalog that was previously saved as yaml
Change By: Josh Cooper
Summary: Can't load cached catalogs using the ' catalog that was previously saved as yaml ' catalog_cache_terminus
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 2, 2021, 12:49:02 AM12/2/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Dec 2, 2021, 1:00:07 AM12/2/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-9154
 
Re: Can't load catalog that was previously saved as yaml

This can reproduced using:

require 'puppet'
Puppet.initialize_settings
Puppet::Resource::Catalog.indirection.terminus_class = :compiler
Puppet::Util::Log.newdestination(:console)
Puppet::ApplicationSupport.push_application_context(Puppet::Util::RunMode[:server])
catalog = Puppet::Resource::Catalog.indirection.find(Puppet[:certname], environment: :production)
data = catalog.render(:yaml)
 
catalog2 = Puppet::Resource::Catalog.convert_from(:yaml, data)
catalog2.to_ral

Josh Cooper (Jira)

unread,
Oct 19, 2022, 11:02:03 PM10/19/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Labels: Easy tbd
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages