Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Detect datacenter when creating a new disk #182

Closed
jbq opened this issue Apr 16, 2016 · 1 comment
Closed

Detect datacenter when creating a new disk #182

jbq opened this issue Apr 16, 2016 · 1 comment

Comments

@jbq
Copy link

jbq commented Apr 16, 2016

When creating a new disk without specifying the datacenter option, there can be an error like this one:

    $ gandi disk create --size=10G --vm srv1 --name docker_srv1
    Creating your disk.
    Progress: [##############################################################################################] 100.00%  00:00:34  
    Usage: gandi disk [OPTIONS]

    Error: Gandi API has returned an error: <Fault 530451: 'Error on object : OBJECT_DISK (CAUSE_DATACENTER) [VM and Disk must be in the same datacenter]'>

When the --vm option is specified, CLI could fetch the datacenter of the VM for disk creation, or a new option like --detect-datacenter could be added to request that the new disk be in the same DC as the VM.

To sum up, when I create a new disk with the --vm option I'd like it to be on the same datacenter than the VM. This would be a time-saver.

@sayoun sayoun closed this as completed in 11fc285 Aug 12, 2016
@sayoun
Copy link
Contributor

sayoun commented Aug 12, 2016

Will be available in next release

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

No branches or pull requests

2 participants