Prechádzať zdrojové kódy

AMBARI-8884. Host Check: adjust umask to handle up-to-027 (aonishuk)

Andrew Onishuk 10 rokov pred
rodič
commit
e94d9403b6

+ 1 - 1
ambari-web/app/controllers/wizard/step3_controller.js

@@ -1467,7 +1467,7 @@ App.WizardStep3Controller = Em.Controller.extend({
 
 
       //parse misc warnings for host
       //parse misc warnings for host
       var umask = _host.Hosts.last_agent_env.umask;
       var umask = _host.Hosts.last_agent_env.umask;
-      if (umask && umask !== 18) {
+      if (umask && umask > 23) {
         warning = warnings.filterProperty('category', 'misc').findProperty('name', umask);
         warning = warnings.filterProperty('category', 'misc').findProperty('name', umask);
         if (warning) {
         if (warning) {
           warning.hosts.push(_host.Hosts.host_name);
           warning.hosts.push(_host.Hosts.host_name);