You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by Brian Bouterse <bm...@ncsu.edu> on 2009/03/13 20:54:10 UTC

Trying to access vmhost_profile_datastore_path

I am trying to use the following line in the esx.pm module to get  
access to the datastore_path field of the 'vmhost' table.

$self->data->vmhost_profile_datastore_path()

The following error is thrown by the above line (168) in vcld.log:

Uncaught exception from user code:
         OIO::Method error: Can't locate object method  
"vmhost_profile_datastore_path" via package "VCL::DataStructure"
Package: VCL::Module::Provisioning::esx
File: /opt/vcl/bin/../lib/VCL/Module/Provisioning/esx.pm
Line: 168

Did this variable get pulled through the VCL::DataStructure.pm module  
appropriately?

Best,
Brian


Brian Bouterse
Secure Open Systems Initiative
919.698.8796





Re: Trying to access vmhost_profile_datastore_path

Posted by Brian Bouterse <bm...@ncsu.edu>.
That was exactly the problem; thanks!

Best,
Brian


Brian Bouterse
Secure Open Systems Initiative
919.698.8796




On Mar 13, 2009, at 4:07 PM, Aaron Peeler wrote:

> ah - need the 'get_'
>
> Try $self->data->get_vmhost_profile_datastore_path()
>
> Aaron
>
>
> --On March 13, 2009 3:54:10 PM -0400 Brian Bouterse  
> <bm...@ncsu.edu> wrote:
>
>> I am trying to use the following line in the esx.pm module to get  
>> access
>> to the datastore_path field of the 'vmhost' table.
>>
>> $self->data->vmhost_profile_datastore_path()
>>
>> The following error is thrown by the above line (168) in vcld.log:
>>
>> Uncaught exception from user code:
>>         OIO::Method error: Can't locate object method
>> "vmhost_profile_datastore_path" via package "VCL::DataStructure"
>> Package: VCL::Module::Provisioning::esx
>> File: /opt/vcl/bin/../lib/VCL/Module/Provisioning/esx.pm
>> Line: 168
>>
>> Did this variable get pulled through the VCL::DataStructure.pm module
>> appropriately?
>>
>> Best,
>> Brian
>>
>>
>> Brian Bouterse
>> Secure Open Systems Initiative
>> 919.698.8796
>>
>>
>>
>>
>
>
>
> Aaron Peeler
> OIT Advanced Computing
> College of Engineering-NCSU
> 919.513.4571
> http://vcl.ncsu.edu


Re: Trying to access vmhost_profile_datastore_path

Posted by Aaron Peeler <aa...@ncsu.edu>.
ah - need the 'get_'

Try $self->data->get_vmhost_profile_datastore_path()

Aaron


--On March 13, 2009 3:54:10 PM -0400 Brian Bouterse <bm...@ncsu.edu> 
wrote:

> I am trying to use the following line in the esx.pm module to get access
> to the datastore_path field of the 'vmhost' table.
>
> $self->data->vmhost_profile_datastore_path()
>
> The following error is thrown by the above line (168) in vcld.log:
>
> Uncaught exception from user code:
>          OIO::Method error: Can't locate object method
> "vmhost_profile_datastore_path" via package "VCL::DataStructure"
> Package: VCL::Module::Provisioning::esx
> File: /opt/vcl/bin/../lib/VCL/Module/Provisioning/esx.pm
> Line: 168
>
> Did this variable get pulled through the VCL::DataStructure.pm module
> appropriately?
>
> Best,
> Brian
>
>
> Brian Bouterse
> Secure Open Systems Initiative
> 919.698.8796
>
>
>
>



Aaron Peeler
OIT Advanced Computing
College of Engineering-NCSU
919.513.4571
http://vcl.ncsu.edu