File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def cli4(args):
160160 if element [0 ] == ':' :
161161 element = element [1 :]
162162 if identifier1 is None :
163- if len (element ) == 32 and hex_only .match (element ):
163+ if len (element ) in [ 32 , 40 , 48 ] and hex_only .match (element ):
164164 # raw identifier - lets just use it as-is
165165 identifier1 = element
166166 elif cmd [0 ] == 'certificates' :
@@ -179,7 +179,7 @@ def cli4(args):
179179 exit (0 )
180180 cmd .append (':' + identifier1 )
181181 else :
182- if len (element ) == 32 and hex_only .match (element ):
182+ if len (element ) in [ 32 , 40 , 48 ] and hex_only .match (element ):
183183 # raw identifier - lets just use it as-is
184184 identifier2 = element
185185 else :
@@ -203,7 +203,7 @@ def cli4(args):
203203 elif method is 'POST' :
204204 r = m .post (identifier1 = identifier1 , identifier2 = identifier2 , data = params )
205205 elif method is 'PUT' :
206- r = m .put (identifier1 = identifier1 , identifier2 = identifier2 , params = params )
206+ r = m .put (identifier1 = identifier1 , identifier2 = identifier2 , data = params )
207207 elif method is 'DELETE' :
208208 r = m .delete (identifier1 = identifier1 , identifier2 = identifier2 , data = params )
209209 else :
You can’t perform that action at this time.
0 commit comments