Skip to content

Commit

Permalink
Merge pull request #7 from xerothermic/master
Browse files Browse the repository at this point in the history
Remove duplicated code.
  • Loading branch information
ajbalogh authored Mar 19, 2018
2 parents 20bec74 + eed4bc7 commit a177bdd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions ixnetwork/IxnHttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,3 @@ def dump_operation():
return data_object
else:
return contentObject

def _get_meta_data(self, href):
pieces = href.split('/')
meta_url = '/'.join(pieces[0:5])
for i in range(5, len(pieces)):
piece = pieces[i]
if len(piece) > 0 and piece.isdigit() is False:
meta_url = '%s/%s' % (meta_url, piece)
if meta_url in IxnHttp._meta_data:
meta_data = IxnHttp._meta_data[meta_url]
else:
meta_data = self.help(meta_url).custom
IxnHttp._meta_data[meta_url] = meta_data
return meta_data


0 comments on commit a177bdd

Please sign in to comment.