Merge pull request #610 from teyrana/fix/608/fin-count

[fixes #608] save all instance counts, even if equal to 1
This commit is contained in:
Joe Pfeiffer 2020-03-30 18:53:07 -06:00 committed by GitHub
commit 2081715e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,8 +90,8 @@ public class RocketComponentSaver {
if( c instanceof Clusterable ){
; // no-op. Instance counts are set via named cluster configurations
}else if( 1 < instanceCount ) {
emitInteger( elements, "instancecount", c.getInstanceCount() );
}else {
emitInteger(elements, "instancecount", c.getInstanceCount());
}
if( c instanceof LineInstanceable ){