Hello.  Is there a standard or best practice for integrating with multiple 
providers that take different parameters to the same API?  For instance, say we 
want to integrate with create_image, supporting EC2 and OpenStack drivers.  EC2 
takes (description=None, reboot=False, etc) parameters, OpenStack takes 
(metadata=None).  What’s the right way to pass EC2 parameters when using EC2 
and OpenStack ones to OpenStack?

Code view:
d = get_driver(type, provider)
node = ...
d.create_image(node, name, {?provider-specific-args?})


Thanks,
Dan Peschman

Reply via email to