Show More
@@ -148,10 +148,14 b' def write_metadata_if_needed(event):' | |||
|
148 | 148 | ini_loc = os.path.dirname(rhodecode.CONFIG.get('__file__')) |
|
149 | 149 | metadata_destination = os.path.join(ini_loc, fname) |
|
150 | 150 | |
|
151 | configuration = system_info.SysInfo( | |
|
152 | system_info.rhodecode_config)()['value'] | |
|
153 | license_token = configuration['config']['license_token'] | |
|
151 | 154 | dbinfo = system_info.SysInfo(system_info.database_info)()['value'] |
|
152 | 155 | del dbinfo['url'] |
|
153 | 156 | metadata = dict( |
|
154 | 157 | desc='upgrade metadata info', |
|
158 | license_token=license_token, | |
|
155 | 159 | created_on=datetime.datetime.utcnow().isoformat(), |
|
156 | 160 | usage=system_info.SysInfo(system_info.usage_info)()['value'], |
|
157 | 161 | platform=system_info.SysInfo(system_info.platform_type)()['value'], |
General Comments 0
You need to be logged in to leave comments.
Login now