Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation bug for createVolume method #344

Open
palaueb opened this issue Feb 4, 2022 · 0 comments
Open

Documentation bug for createVolume method #344

palaueb opened this issue Feb 4, 2022 · 0 comments

Comments

@palaueb
Copy link

palaueb commented Feb 4, 2022

I have found a small bug into documentation about creation of volumes:
https://php-opencloudopenstack.readthedocs.io/en/latest/services/block-storage/v2/volumes.html#create-from-image

It uses sourceVolumeId, but it's not the correct attribute, in this case you need to use imageId:

$volume = $service->createVolume([
        'description'    => 'Volume for new server'
        'size'           => 10,
        'name'           => 'delete_me_volume',
        'imageId'        => $imageId
    ]);

Thanks for this awesome work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant