Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

catch fault exeption on UpgradeTools_Task

$
0
0

hi all,

 

I'm trying to automate update/install of vmware tool in virtual machine but this simple test code aren't work.

I can see error in VSphere console but i can't handle fault

 

my $vm_view = Vim::find_entity_view( view_type => 'VirtualMachine',
                                         filter => { 'name' => qr/^$vm$/i },
  eval {

    $vm_view->UpgradeTools_Task ;

   } ;

  if ( $@ ) {

    print "erreur\n" ;

    $@->faultMessage() ;

    print Dumper $@ ;

  }

thanks for help

Viewing all articles
Browse latest Browse all 1577

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>