Comments

Xiaohua Guan created an issue. See original summary.

xiaohua guan’s picture

Issue summary: View changes
xiaohua guan’s picture

Status: Active » Needs review
StatusFileSize
new36 KB
xiaohua guan’s picture

@yas

I've created a simple version of VM create form. Please check it. Thanks.

yas’s picture

Status: Needs review » Needs work

@xiaohua-guan

Thank you for the patch.

  1. I encountered the following error while running drush updb -y. Probably use Drupal\Core\Field\BaseFieldDefinition; is missing in vmware.install? Could you please double check?
    $ drush updb -y
     -------- ----------- --------------- ----------------------------------- 
      Module   Update ID   Type            Description                        
     -------- ----------- --------------- ----------------------------------- 
      vmware   8208        hook_update_n   Add field guest_os to vmware_vm.   
      vmware   8209        hook_update_n   Add fields to vmware_vm.           
     -------- ----------- --------------- ----------------------------------- 
    
    
     // Do you wish to run the specified pending updates?: yes.                                                             
    
    >  [notice] Update started: vmware_update_8208
    >  [error]  Class 'BaseFieldDefinition' not found 
    >  [error]  Update failed: vmware_update_8208 
     [error]  Update aborted by: vmware_update_8208 
     [error]  Finished performing updates. 
  2. Can you put this method to CloudService::formatMemor($number)?
    +++ b/cloud.module
    @@ -357,3 +357,38 @@ function cloud_update_views_configuration($view_name, array $options) {
    +/**
    + * Format memory string.
    + *
    + * @param float $number
    + *   The number of memory size.
    + *
    + * @return string
    + *   The formatted memory string.
    + */
    +function cloud_format_memory($number) {
    
xiaohua guan’s picture

StatusFileSize
new35.5 KB
xiaohua guan’s picture

Status: Needs work » Needs review

@yas

I am sorry for the bug. Please check the patch again. Thanks.

yas’s picture

Status: Needs review » Needs work

@xiaohua-guan

Thank you for the update. How about 2. at #3166941-5?

xiaohua guan’s picture

StatusFileSize
new36.27 KB
xiaohua guan’s picture

Status: Needs work » Needs review
xiaohua guan’s picture

@yas

I fixed 2. Please review the patch file. Thanks.

yas’s picture

Status: Needs review » Needs work

@xiaohua-guan

Thank you for the update. We need to add CloudServiceInterface:: formatMemory($number).

xiaohua guan’s picture

StatusFileSize
new36.8 KB
xiaohua guan’s picture

Status: Needs work » Needs review

@yas

I've added the function to the interface. Please review the patch file. Thanks.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@xiaohua-guan

Thank you for the update. it looks good to me now. I'll merge the patch to 3.x and close this issue as Fixed.

  • yas committed 7b977fd on 3.x authored by Xiaohua Guan
    Issue #3166941 by Xiaohua Guan, yas: Create an VMware virtual machine
    
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.