summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2019-01-16 14:13:21 -0800
committerKiran Kamineni <kiran.k.kamineni@intel.com>2019-01-16 14:13:25 -0800
commit1fa0e21ea6d3c5fb060daba19a0cb6c1f26f1364 (patch)
treeda2b2b67e3325cf20acf276d5e66f511ea99530d /src
parent40a8c03fc466d81028a496060244d887cf86da2b (diff)
Fix order of db create call
definition upload code call db create in wrong order This patch fixes that. Issue-ID: MULTICLOUD-438 Change-Id: I7c60308c89b35583bb739cf98e8106f1c738a143 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/k8splugin/rb/definition.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/k8splugin/rb/definition.go b/src/k8splugin/rb/definition.go
index 02ecc5ae..460dc7a6 100644
--- a/src/k8splugin/rb/definition.go
+++ b/src/k8splugin/rb/definition.go
@@ -146,7 +146,7 @@ func (v *DefinitionClient) Upload(id string, inp []byte) error {
//Encode given byte stream to text for storage
encodedStr := base64.StdEncoding.EncodeToString(inp)
- err = db.DBconn.Create(v.storeName, id, encodedStr, v.tagContent)
+ err = db.DBconn.Create(v.storeName, id, v.tagContent, encodedStr)
if err != nil {
return pkgerrors.Errorf("Error uploading data to db: %s", err.Error())
}