ari: Fix generators for resources with camelCase names.
authorDavid M. Lee <dlee@digium.com>
Thu, 21 Nov 2013 21:22:26 +0000 (21:22 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 21 Nov 2013 21:22:26 +0000 (21:22 +0000)
For the new deviceState resource, we need to properly generate
device_state.[ch] files.
........

Merged revisions 402981 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402982 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rest-api-templates/make_ari_stubs.py

index a08b9bf..860ab33 100755 (executable)
@@ -47,11 +47,11 @@ API_TRANSFORMS = [
     Transform(rel('api.wiki.mustache'),
               'doc/rest-api/%s {{name_title}} REST API.wiki' % WIKI_PREFIX),
     Transform(rel('res_ari_resource.c.mustache'),
-              'res/res_ari_{{name}}.c'),
+              'res/res_ari_{{c_name}}.c'),
     Transform(rel('ari_resource.h.mustache'),
-              'res/ari/resource_{{name}}.h'),
+              'res/ari/resource_{{c_name}}.h'),
     Transform(rel('ari_resource.c.mustache'),
-              'res/ari/resource_{{name}}.c', overwrite=False),
+              'res/ari/resource_{{c_name}}.c', overwrite=False),
 ]
 
 RESOURCES_TRANSFORMS = [