0
TAG_NAME="1.7.0"

 data  = {}
        print data
        data["id"] = project_id,
        data["tag_name"] = TAG_NAME,
        data["ref"] = "master"

Output

{}
data {'tag_name': ('1.7.0',), 'ref': 'master', 'id': (1596041,)}

Why am i getting tag_name and id as tuple

unnik
  • 1,123
  • 5
  • 18
  • 37

1 Answers1

0

You have a redundant comma at the end of those lines, turning the values from scalars to tuples. Remove them and you should be OK:

data["id"] = project_id # Comma removed at the end of this line
data["tag_name"] = TAG_NAME # And this one...
data["ref"] = "master"
Mark Tolonen
  • 166,664
  • 26
  • 169
  • 251
Mureinik
  • 297,002
  • 52
  • 306
  • 350