Revision 5acb8b8a snf-cyclades-app/synnefo/ui/static/snf/js/models.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
552 | 552 |
}, |
553 | 553 |
|
554 | 554 |
_supports_ssh: function() { |
555 |
if (synnefo.config.support_ssh_os_list.indexOf(this.get_os()) > -1) { |
|
555 |
var os_list = synnefo.config.support_ssh_os_list; |
|
556 |
var osfamily_list = synnefo.config.support_ssh_os_family_list; |
|
557 |
|
|
558 |
var os = this.get_os(); |
|
559 |
if (os_list.indexOf(os) > -1) { |
|
556 | 560 |
return true; |
557 | 561 |
} |
558 |
if (this.get_meta('osfamily') == 'linux') { |
|
559 |
return true; |
|
562 |
|
|
563 |
var osfamily = this.get_meta("osfamily"); |
|
564 |
if (osfamily_list.indexOf(osfamily) > -1) { |
|
565 |
return true |
|
560 | 566 |
} |
567 |
|
|
561 | 568 |
return false; |
562 | 569 |
}, |
563 | 570 |
|
Also available in: Unified diff