Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing rt5863: strange attach/detach volume issue

  • Loading branch information...
commit 28bd434730b10bcfc81f8c5964f8e40b7e30eac3 1 parent be9ec8f
Sang-Min Park authored January 31, 2012
4  clc/modules/cluster-manager/src/main/java/com/eucalyptus/vm/VmVolumeAttachment.java
@@ -230,8 +230,8 @@ public AttachedVolume apply( VmVolumeAttachment vol ) {
230 230
         }
231 231
         attachment.setAttachTime( vol.getAttachTime( ) );
232 232
         attachment.setStatus( vol.getStatus( ) );
233  
-        if ( !attachment.getDevice( ).startsWith( "/dev/" ) ) {
234  
-          attachment.setDevice( "/dev/" + attachment.getDevice( ) );
  233
+        if ( !attachment.getDevice( ).replaceAll( "unknown,requested:", "" ).startsWith( "/dev/" ) ) {
  234
+          attachment.setDevice( "/dev/" + attachment.getDevice( ).replaceAll( "unknown,requested:", "" ) );
235 235
         }
236 236
         return attachment;
237 237
       }

0 notes on commit 28bd434

Please sign in to comment.
Something went wrong with that request. Please try again.