neilwatson has asked for the wisdom of the Perl Monks concerning the following question:

Greetings,

For some reason this attempt to get the cobbler profile, from Satellite, in order to modify it, fails.

my $system_id = $server->get_profile_handle( $profile_name, $token )-> +result() or die "Could not find $profile_name, $!";

The die is invoked. There is no error returned, and nothing is in system_id. Web searches have turned up nothing. What might the problem be? I know the token is good, because I can create and delete profiles.

Neil Watson
watson-wilson.ca

  • Comment on get_profile_handle error with perl's xmlrpc::lite and satellite's cobbler
  • Download Code

Replies are listed 'Best First'.
Re: get_profile_handle error with perl's xmlrpc::lite and satellite's cobbler
by taint (Chaplain) on May 23, 2014 at 15:16 UTC
    Greetings, neilwatson.

    As I don't have access to your entire script. I feel compelled to ask; are you by chance using warnings, or diagnostics?

    Using either one of these should emit a great deal of additional information. That 1) gives you an immediate answer to your question, or 2) gives you some very good clues, as to what to look for, in order to get your answer. :)

    Best wishes

    --Chris

    ¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

      Yes, I use warnings and strict. No error message though. I think the problem in on the cobbler side. Their system, name, and profile nomenclature is confusing.

      Neil Watson
      watson-wilson.ca