package io.cattle.platform.docker.process.lock;

import io.cattle.platform.core.model.StoragePool;
import io.cattle.platform.lock.definition.AbstractBlockingLockDefintion;

public class DockerStoragePoolVolumeCreateLock extends AbstractBlockingLockDefintion {

    public DockerStoragePoolVolumeCreateLock(StoragePool storagePool, String volumeUri) {
        super(String.format("DOCKER.STORAGE_POOL.VOLUME.CREATE.%s.%s", storagePool.getId(), volumeUri));
    }

}

package io.cattle.platform.docker.process.lock;

import io.cattle.platform.core.model.StoragePool;
import io.cattle.platform.lock.definition.AbstractBlockingLockDefintion;

public class DockerStoragePoolVolumeCreateLock extends AbstractBlockingLockDefintion {

    public DockerStoragePoolVolumeCreateLock(StoragePool storagePool, String volumeUri) {
        super(String.format("DOCKER.STORAGE_POOL.VOLUME.CREATE.%s.%s", storagePool.getId(), volumeUri == null ? 0 : volumeUri.hashCode()));
    }

}

Fix bad characters in lock name