Skip to content

Commit

Permalink
Merge branch 'bugfix_deployments-os' into 'main'
Browse files Browse the repository at this point in the history
Fixes bug in deployments view with missing os field in desktops

See merge request isard/isardvdi!323
  • Loading branch information
alarraz committed Aug 30, 2021
2 parents 4ef4654 + 79939a6 commit d653bab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [3.0.2] - 2021-08-27

### Fixed

- Deployments with started desktops failed

## [3.0.1] - 2021-08-27

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion api/src/api/libv2/api_deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def Get(self,user_id,deployment_id):
with app.app_context():
deployment = r.table('deployments').get(deployment_id).without('create_dict').run(db.conn)
if user_id != deployment['user']: raise
desktops = list(r.table('domains').get_all(deployment_id,index='tag').pluck('id','user','name','description','status','icon','image','persistent','parents','create_dict','viewer','options').run(db.conn))
desktops = list(r.table('domains').get_all(deployment_id,index='tag').pluck('id','user','name','description','status','icon','os','image','persistent','parents','create_dict','viewer','options').run(db.conn))

parsed_desktops=[]
for desktop in desktops:
Expand Down
2 changes: 1 addition & 1 deletion api/src/api/libv2/api_socketio_deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(self):
deployment={'id':c['new_val']['id'],
'name':c['new_val']['name'],
'user':user,
'totalDesktops': r.table('domains').get_all(deployment['id'],index='tag').count().run(db.conn),
'totalDesktops': r.table('domains').get_all(c['new_val']['id'],index='tag').count().run(db.conn),
"startedDesktops": 0
}
else:
Expand Down

0 comments on commit d653bab

Please sign in to comment.