From bb83afbc6295926a0bfdc8347cc99e48793e3837 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Wed, 6 Feb 2019 11:22:38 +0100
Subject: [PATCH] Use format() to concanate str and int

---
 test/cosmos.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/cosmos.py b/test/cosmos.py
index 779d33e0c..25f9102e5 100755
--- a/test/cosmos.py
+++ b/test/cosmos.py
@@ -105,13 +105,13 @@ def delete_droplet(id: int):
 
 def get_domain_record(domain: str, id: int):
     """Get details for given domain record."""
-    response = request_api('domains/' + domain + '/records/' + str(id))
+    response = request_api('domains/{0}/records/{1}'.format(domain, id))
     return response['domain_record']
 
 
 def get_domain_records(domain: str):
     """Get domain records for given domain."""
-    response = request_api('domains/' + domain + '/records')
+    response = request_api('domains/{0}/records'.format(domain))
     return response['domain_records']
 
 
-- 
GitLab