Skip to content

Commit f03b8ed

Browse files
committed
Have examples handle snake case to camel case
Change-Id: I91f1d2ab84f83ff38f7f4ebc60a3a1e22a82d9e7
1 parent 4c01c6b commit f03b8ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def find_resource_cls(opts):
5353
args[-1] = args[-1].replace('.py', '')
5454
from_str = '.'.join(args)
5555
class_str = args[-1].title()
56+
class_str = class_str.replace('_', '')
5657
else:
5758
# called with path e.g.: openstack.network.v2_0.network.Network
5859
args = argument.rpartition('.')

0 commit comments

Comments
 (0)