Quantcast
Viewing all articles
Browse latest Browse all 872

Obtaining template name is inconsistent when Template is Migrated

Hi,

 

I have an app which lists the Templates in our vDC using

 

 

$queryFormat = "Records";
$qr = "query$queryFormat";
$type = "vm";
$recObj = $sdkQuery->$qr($type, $queryParams);
$records = $recObj->getRecord();
foreach ($records as $record) {
  if($record->get_isVAppTemplate()) {

    $cloud_templates[$vAppName]['vms'][$vmindex]['name'] = $record->get_name();

  }

}

 

Then late the template object is obtained during the deploy process using this name:

 

$catalogItems = $sdkCat->getCatalogItems($_SESSION['cloud']['vAppTemplateName']);

 

However we recently migrated a Template from one vDC to another and now the query sees the right name but the getCatalogItems wants a longer name like the following:

 

via Query Format name = "Redhat Enterprise 6 (RHEL 6)"

via getCatalogItems need to use = "Redhat Enterprise 6 (RHEL 6)-copy-9cd51c0e-fdf8-4bba-a545-ca83f4f45aca"

 

When we deploy in vCD we dont ever see this long name.

 

Is there a way to search get the Catalog Items based on the short name Or do I need to write a loop search to try and reconcile the variation in names?  Or is this a bug?

 

Dion


Viewing all articles
Browse latest Browse all 872

Trending Articles