Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

installing add-ons produces weird output #98

Open
juliandunn opened this issue Sep 23, 2014 · 1 comment
Open

installing add-ons produces weird output #98

juliandunn opened this issue Sep 23, 2014 · 1 comment

Comments

@juliandunn
Copy link
Contributor

I'm assuming the string presentation of the class isn't what was intended here... what was?

# chef-server-ctl install chef-ha
.
.
.
Running handlers:
-- Installed Add-On Package: chef-ha
  - #<Class:0x00000003d12df8>::AddonInstallHandler
Running handlers complete```
@doubt72
Copy link

doubt72 commented Sep 24, 2014

Actually, (despite the fact that I don't like it either), it's actually more or less what's intended (at least on the Chef client side), it's something the default doc formatter is doing. Though it's not ideal, without changing chef itself (or, more specifically the default chef doc formatter), it can't be suppressed from the omnibus/recipe/etc side without probably causing side effects (i.e., I can think of a way that might work, but it'd be monkey patching and super evil):

https://github.com/opscode/chef/blob/dd742991862f6b1c9b8d193549f6b87c5c92cfa6/lib/chef/formatters/doc.rb#L256

I'm not sure I'd want to change chef behavior here, somebody might be using the class information for some reason (debugging, what have you).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants