Open zeroDivisible opened 7 years ago
I think this should not fail, if the user does not provide the network interface details, but instead fall back to the old behaviour. So that we are not breaking any working scenarios.
Sorry, you're right with the above - the snippet which I provided above is taken from the implementation which I've been using, however - your solution works for everybody.
A backwards-compatible approach would be ideal.
This is just an idea, so I'm happy to discuss the details when it comes to working on implementing this.
Basically, currently in
lib/fog/compute/openstack/requests/create_server.rb
, we've got this piece of code:So when creating server, our control over the mocked nic details is a bit limited. Would it make sense to enhance this to something like:
The biggest win here is allowing the user to provide details of the mocked network interfaces.