From 9ca47aa3365648fc497055b9e6fca5caaa59e81c Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 19 May 2013 14:02:18 +0200 Subject: gitlab: update the object syntax --- gitlab | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gitlab') diff --git a/gitlab b/gitlab index 5feef55..e02f9c2 100755 --- a/gitlab +++ b/gitlab @@ -81,8 +81,11 @@ except: if action not in ['get', 'list', 'update', 'create', 'delete']: die("Unknown action: %s" % action) +def whatToCls(what): + return "".join([s.capitalize() for s in what.split("-")]) + try: - cls = gitlab.__dict__[what] + cls = gitlab.__dict__[whatToCls(what)] except: die("Unknown object: %s" % what) -- cgit v1.2.1