Have examples handle snake case to camel case
Change-Id: I91f1d2ab84f83ff38f7f4ebc60a3a1e22a82d9e7
This commit is contained in:
@@ -53,6 +53,7 @@ def find_resource_cls(opts):
|
|||||||
args[-1] = args[-1].replace('.py', '')
|
args[-1] = args[-1].replace('.py', '')
|
||||||
from_str = '.'.join(args)
|
from_str = '.'.join(args)
|
||||||
class_str = args[-1].title()
|
class_str = args[-1].title()
|
||||||
|
class_str = class_str.replace('_', '')
|
||||||
else:
|
else:
|
||||||
# called with path e.g.: openstack.network.v2_0.network.Network
|
# called with path e.g.: openstack.network.v2_0.network.Network
|
||||||
args = argument.rpartition('.')
|
args = argument.rpartition('.')
|
||||||
|
|||||||
Reference in New Issue
Block a user