mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Fixed CLOUDSTACK-2081 Volume which is added thru upload volume is failed to attach to the instance saying Volume state must be in Allocated, Ready or in Uploaded state( Though uploaded Volume state is uploaded)
This commit is contained in:
		
							parent
							
								
									28c5fbcb05
								
							
						
					
					
						commit
						107f492475
					
				@ -748,11 +748,11 @@ public class VolumeServiceImpl implements VolumeService {
 | 
			
		||||
    protected Void registerVolumeCallback(AsyncCallbackDispatcher<VolumeServiceImpl, CreateCmdResult> callback, CreateVolumeContext<VolumeApiResult> context) {
 | 
			
		||||
        CreateCmdResult result = callback.getResult();
 | 
			
		||||
        VolumeObject vo = (VolumeObject)context.volume;
 | 
			
		||||
        /*if (result.isFailed()) {
 | 
			
		||||
        if (result.isFailed()) {
 | 
			
		||||
            vo.stateTransit(Volume.Event.OperationFailed);
 | 
			
		||||
        } else {
 | 
			
		||||
            vo.stateTransit(Volume.Event.OperationSucceeded);
 | 
			
		||||
        }*/
 | 
			
		||||
        }
 | 
			
		||||
        VolumeApiResult res = new VolumeApiResult(vo);
 | 
			
		||||
        context.future.complete(res);
 | 
			
		||||
        return null;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user