slaprunner: exit runner importer if there is no deployed partition in slapproxy database
If Software release is selected but instance is not deployed, there will be no partition deployed in slapproxy which will make current importer script fail.
Showing
-
Maintainer
-
Developer
@alain.takoudjou : you are right, I will fix that
-
Maintainer
are you ok with this fix ?
-
Developer
I would prefer to use a more generic sql request to test this, for exemple :
select slap_state from partition11 where slap_state != 'free';
As otherwise we will have to update this code when slapos.toolbox!19 will be merged (as afterwards we may have an empty slappart0, but deployed instances in other slapparts).
Please register or sign in to comment