summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
index f849121d94a..dfd75e8a236 100644
--- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
+++ b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
@@ -149,8 +149,8 @@ if deb
# All versions of Debian 10 will use /usr/sbin/nologin for service
# account shells
its('shell') {
- if ((os[:family] == 'debian' and os[:release].split('.')[0] == '10') or
- (os[:family] == 'ubuntu' and os[:release] == '18.04'))
+ if ((os[:name] == 'debian' and os[:release].split('.')[0] == '10') or
+ (os[:name] == 'ubuntu' and os[:release] == '18.04'))
should eq '/usr/sbin/nologin'
else
should eq '/bin/false'