fill volume attached field (#5865)

Co-authored-by: DK101010 <dirk.klahre@itelligence.de>
This commit is contained in:
DK101010 2022-01-20 14:54:26 +01:00 committed by GitHub
parent 4996b800b5
commit f639f56834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,7 @@ import com.cloud.vm.dao.UserVmCloneSettingDao;
import com.cloud.vm.dao.UserVmDao;
import static com.cloud.storage.resource.StorageProcessor.REQUEST_TEMPLATE_RELOAD;
import java.util.Date;
public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrationService, Configurable {
@ -1975,6 +1976,7 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati
vol.setPath(path);
vol.setChainInfo(chainInfo);
vol.setState(Volume.State.Ready);
vol.setAttached(new Date());
vol = _volsDao.persist(vol);
return toDiskProfile(vol, offering);
}