Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/winrmcertificateauth.py   cloudbase-init(Download)
                            "not been set in the plugins shared data")
 
        password = shared_data.get(constants.SHARED_DATA_PASSWORD)
        if not password:
            raise Exception("Cannot execute plugin as the password has "
                            "not been set in the plugins shared data")
 
        # For security reasons unset the password in the shared_data
        # as it is currently not needed by other plugins
        shared_data[constants.SHARED_DATA_PASSWORD] = None

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/setuserpassword.py   cloudbase-init(Download)
                password = self._set_password(service, osutils, user_name)
                # TODO(alexpilotti): encrypt with DPAPI
                shared_data[constants.SHARED_DATA_PASSWORD] = password
 
                if not service.can_post_password:

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/createuser.py   cloudbase-init(Download)
 
            # TODO(alexpilotti): encrypt with DPAPI
            shared_data[constants.SHARED_DATA_PASSWORD] = password
 
        for group_name in CONF.groups:

src/c/l/cloudbase-init-HEAD/cloudbaseinit/tests/plugins/windows/test_winrmcertificateauth.py   cloudbase-init(Download)
            response = self._certif_auth._get_credentials(mock_shared_data)
            expected = [mock.call(constants.SHARED_DATA_USERNAME),
                        mock.call(constants.SHARED_DATA_PASSWORD)]
            self.assertEqual(mock_shared_data.get.call_args_list, expected)
            mock_shared_data.__setitem__.assert_called_once_with(