warble-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [incubator-warble-server] 01/03: save description/notes in registry as well
Date Wed, 27 Jun 2018 18:29:59 GMT
This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-warble-server.git

commit 3a79bfa35831f40f2817c08094b72387ccd08d77
Author: Daniel Gruno <humbedooh@apache.org>
AuthorDate: Wed Jun 27 13:29:38 2018 -0500

    save description/notes in registry as well
---
 api/plugins/registry.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/plugins/registry.py b/api/plugins/registry.py
index dd62117..80515d5 100644
--- a/api/plugins/registry.py
+++ b/api/plugins/registry.py
@@ -93,8 +93,8 @@ class node(object):
                 )
         # Save an existing node?
         else:
-            nc.execute("UPDATE `registry` SET `hostname` = ?, `apikey` = ?, `pubkey` = ?,
`location`= ?, `verified` = ?, `enabled` = ?, `ip` = ?, `lastping` = ?, `version` = ? WHERE
`id` = ? LIMIT 1",
-                    (self.hostname, self.apikey, self.pem, self.location, 1 if self.verified
else 0, 1 if self.enabled else 0, self.ip, self.lastping, self.version, self.id,)
+            nc.execute("UPDATE `registry` SET `hostname` = ?, `apikey` = ?, `pubkey` = ?,
`location`= ?, `verified` = ?, `enabled` = ?, `ip` = ?, `lastping` = ?, `version` = ?, `description`=
? WHERE `id` = ? LIMIT 1",
+                    (self.hostname, self.apikey, self.pem, self.location, 1 if self.verified
else 0, 1 if self.enabled else 0, self.ip, self.lastping, self.version, self.description,
self.id,)
                 )
         self.conn.commit()
     


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@warble.apache.org
For additional commands, e-mail: commits-help@warble.apache.org


Mime
View raw message