Skip to content

Commit 6b33601

Browse files
Merge pull request #12 from tfeseker/id_type_string
Id type string
2 parents 426aa78 + 3ad885b commit 6b33601

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frost_sta_client/dao/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ def delete(self, entity):
200200
logging.debug('Received response: {}'.format(response.status_code))
201201

202202
def entity_path(self, id):
203-
return "{}({})".format(self.entitytype_plural, id)
203+
if isinstance(id, int):
204+
return "{}({})".format(self.entitytype_plural, id)
205+
return "{}('{}')".format(self.entitytype_plural, id)
204206

205207
def query(self):
206208
return frost_sta_client.query.query.Query(self.service, self.entitytype, self.entitytype_plural,

0 commit comments

Comments
 (0)