コード例 #1
0
             $found_hc_id = $storage->id;
             break;
         }
     }
 }
 if ($found_hc) {
     // remove all AMI Images, then the storage
     $image = new image();
     $hc_image_list = $image->get_ids_by_storage($found_hc_id);
     foreach ($hc_image_list as $list) {
         foreach ($list as $hc_image_id) {
             $image->remove($hc_image_id);
             $event->log("init", $_SERVER['REQUEST_TIME'], 5, "hybrid-cloud-ation", "Removed AMI Image Object " . $hc_image_id . ".", "", "", 0, 0, 0);
         }
     }
     $storage->remove($found_hc_id);
 }
 // remove cloud products
 if (file_exists($cloud_usergroup_class)) {
     require_once $cloud_usergroup_class;
     $cloud_project = new cloudusergroup();
     $cloud_project->get_instance_by_name('Admin');
     if (file_exists($cloud_selector_class)) {
         if (file_exists($cloud_product_hook)) {
             $cloud_hook_config = array();
             $cloud_hook_config['cloud_admin_procect'] = $cloud_project->id;
             require_once $cloud_product_hook;
             openqrm_hybrid_cloud_cloud_product("remove", $cloud_hook_config);
         }
     }
 }