Skip to content

Commit f639f56

Browse files
DK101010DK101010
andauthored
fill volume attached field (apache#5865)
Co-authored-by: DK101010 <dirk.klahre@itelligence.de>
1 parent 4996b80 commit f639f56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
import com.cloud.vm.dao.UserVmDao;
165165

166166
import static com.cloud.storage.resource.StorageProcessor.REQUEST_TEMPLATE_RELOAD;
167+
import java.util.Date;
167168

168169
public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrationService, Configurable {
169170

@@ -1975,6 +1976,7 @@ public DiskProfile importVolume(Type type, String name, DiskOffering offering, L
19751976
vol.setPath(path);
19761977
vol.setChainInfo(chainInfo);
19771978
vol.setState(Volume.State.Ready);
1979+
vol.setAttached(new Date());
19781980
vol = _volsDao.persist(vol);
19791981
return toDiskProfile(vol, offering);
19801982
}

0 commit comments

Comments
 (0)