HomePhorge

(#9186) Handle when running under non 'user' contexts
8e14de6fa56eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#9186) Handle when running under non 'user' contexts

The Sys::Admin.get_user method doesn't work when the username exists
in the WMI Win32_Account class, but not the Win32_UserAccount
class. For example, SYSTEM which is the user context under which the
jenkins agent runs under.

This commit modifies the spec test to query the more general
Win32_Account class. This code will be moved to a more generic
location in a future commit.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUba1f469dc9c8: (#9186) Change to shared_examples_for
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU8e14de6fa56e: (#9186) Handle when running under non 'user' contexts (authored by Josh Cooper <josh@puppetlabs.com>).Sep 14 2011, 8:45 PM