Commit db904938 authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

logging and storage name

parent c54022ed
Pipeline #157981 passed with stage
in 25 seconds
......@@ -60,7 +60,7 @@ class Se(Base):
storage = Column(String(150), primary_key=True)
site = Column(String(45))
se_metadata = Column(String(255))
se_metadata = Column(String(255))
ipv6 = Column(Flag(negative='off', positive='on'), default='off')
udt = Column(Flag(negative='off', positive='on'))
debug_level = Column(Integer)
......@@ -71,7 +71,7 @@ class Se(Base):
def __str__(self):
return self.name
return self.storage
class ShareConfig(Base):
......
......@@ -55,13 +55,16 @@ class SeConfigurationController(BaseController):
try:
for storage, cfg in input_dict.iteritems():
# As source
se_info_new = cfg.get('se_info', None)
if se_info_new:
se_info = Session.query(Se).filter(Se.storage == storage).first()
log.debug("Se info %s" % se_info)
for key, value in se_info_new.iteritems():
value = validate_type(Se, key, value)
setattr(se_info, key, value)
log.debug("key %s" % key)
log.debug("value %s" % value)
audit_configuration('set-se-config', 'Set config %s: %s' % (storage, json.dumps(cfg)))
Session.merge(se_info)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment