Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the config-model CPAN distribution.

Report information
The Basics
Id: 93329
Status: resolved
Priority: 0/
Queue: config-model

People
Owner: DDUMONT [...] cpan.org
Requestors: shabble [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.048
Fixed in: 2.050



Subject: method lookup failure for 'as_warning" via package Config::Model::CheckList when using `cme check ssh'
Date: Tue, 25 Feb 2014 07:39:03 +0000
To: bug-Config-Model-OpenSsh [...] rt.cpan.org
From: Tom Feist <shabble [...] gmail.com>
When invoked as: $ cme check ssh loading data checking data check done Can't locate object method "has_warning" via package "Config::Model::CheckList" at /opt/local/lib/perl5/site_perl/5.16.1/Config/Model/Instance.pm line 142. $?=2 $ cpanm --info Config::Model DDUMONT/Config-Model-2.048.tar.gz $ cpanm --info Config::Model::OpenSsh DDUMONT/Config-Model-OpenSsh-1.233.tar.gz Darwin chompy.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64 i386 MacBookPro8,2 Darwin This is perl 5, version 16, subversion 1 (v5.16.1) built for darwin-thread-multi-2level [Macports] My .ssh/config appears to be valid otherwise (I had some errors it caught which I fixed), but the failure persists. The --stack-trace option doesn't appear to do anything, and I don't understand the logging syntax enough to know what to set it to for useful output. Any ideas? Cheers, Tom
Subject: Re: [rt.cpan.org #93329] AutoReply: method lookup failure for 'as_warning" via package Config::Model::CheckList when using `cme check ssh'
Date: Tue, 25 Feb 2014 08:02:10 +0000
To: bug-Config-Model-OpenSsh [...] rt.cpan.org
From: Tom Feist <shabble [...] gmail.com>
Some additional testing I forgot to do with a trivial config file: $ cat ~/.ssh/config Host test HostName ssh.example.com User shabble Port 22 $ cme dump ssh Host:"*" - Host:test HostName=ssh.example.com User=shabble - - Can't locate object method "has_warning" via package "Config::Model::CheckList" at /opt/local/lib/perl5/site_perl/5.16.1/Config/Model/Instance.pm line 142. indicates the same problem both with a minimal config, and with the dump vs check command. It appears to also occur with the 'system-ssh' and 'sshd' targets as well (although I ahve some validation errors in those), and I don't have popcon or fstab to test.
Hello There's indeed an issue with Config::Model 2.048 that I did not detect. C::M::CheckList is indeed missing a has_warning method. cme check ssh should work if you downgrade Config::Model to 2.047. I'll fix Config::Model and release a 2.049 version. All the best
Le Mar 25 Fév 2014 08:39:13, shabble@gmail.com a écrit : Show quoted text
> The --stack-trace option doesn't appear to do anything, and I don't > understand the logging syntax enough to know what to set it to > for useful output.
For the record, the --stack-trace option will lead to a stack trace when cme throws an exception. In this case, the exception is throw by Perl because of the missing method. To get a stack trace in this case, you can use Devel::SimpleTrace module: perl -wMDevel::SimpleTrace -S cme check ssh Last but not least, you can find a sample log4config-model to enable logging for cme on github: https://github.com/dod38fr/config-model/blob/master/contrib/log4config-model All the best