From f03b8ed03328ea746cb1afcace3d2e6a8dec2b4b Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Fri, 1 Aug 2014 07:34:38 -0600 Subject: [PATCH] Have examples handle snake case to camel case Change-Id: I91f1d2ab84f83ff38f7f4ebc60a3a1e22a82d9e7 --- examples/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/common.py b/examples/common.py index cde20e7f..cb5a6abb 100755 --- a/examples/common.py +++ b/examples/common.py @@ -53,6 +53,7 @@ def find_resource_cls(opts): args[-1] = args[-1].replace('.py', '') from_str = '.'.join(args) class_str = args[-1].title() + class_str = class_str.replace('_', '') else: # called with path e.g.: openstack.network.v2_0.network.Network args = argument.rpartition('.')