Skip to content

Documentation bug for createVolume method #344

@palaueb

Description

@palaueb

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions