Skip to content

Commit

Permalink
do not redefine python built-in
Browse files Browse the repository at this point in the history
W: 40:SystemAPI.unregister: Redefining built-in 'id'
W: 44:SystemAPI.system: Redefining built-in 'id'
  • Loading branch information
xsuchy committed Jul 14, 2011
1 parent 82a18dc commit 6152a80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/src/katello/client/api/system.py
Expand Up @@ -37,12 +37,12 @@ def register(self, name, org, envName, cp_type):
"distribution.name": "Fedora"
}
})[1]
def unregister(self, id):
path = "/api/systems/" + str(id)
def unregister(self, system_id):
path = "/api/systems/" + str(system_id)
return self.server.DELETE(path)[1]

def system(self, id):
path = "/api/systems/%s" % id
def system(self, system_id):
path = "/api/systems/%s" % system_id
return self.server.GET(path)[1]

def systems_by_org(self, orgId, query = {}):
Expand Down

0 comments on commit 6152a80

Please sign in to comment.