1 " ˆl–ß=¿J µ2ÛR‚œP-\l˜´oÈ ƒ Í·ÆÅ? a '¡Dgi ã@s|ddlZddlZddlZddlmZe e¡Zejddœe ddœdd„Z edƒd d „ƒZ dddej dfd d „Z ddd„ZdS)éN)ÚtimedT)Ú log_levelÚexc_info)rÚreturncGs0|j||g|¢RŽ|j|g|¢Rd|iŽdS)Nr)ÚlogÚdebug)rÚmsgrrÚargs©r ú:/usr/lib/python3.9/site-packages/cloudinit/log/log_util.pyÚlogexc sr zWriting to consolecCs@t|dƒ�"}| |¡| ¡Wdƒn1s20YdS)NÚw)ÚopenÚwriteÚflush)ÚconpathÚtextZwfhr r r Úwrite_to_consoles  rc CsÀ|rtj |¡|rŠd}d}tj |¡rvzt||ƒd}Wn:tytd}tj |›d�¡|rp|  t j |¡Yn0|rŠ|sŠtj |¡|r¼|ddkr°|  ||dd…¡n |  ||¡dS)Nz /dev/consoleFTzFailed to write to /dev/consoleÚ éÿÿÿÿ) ÚsysÚstderrrÚosÚpathÚexistsrÚOSErrorÚstdoutrÚloggingÚWARNING) rZconsolerrrZfallback_to_stdoutrZwriting_to_console_workedZ console_errorr r r Ú multi_logs(      réú Error: {}FcCs&t| |¡tjd�|r"t |¡|S)züPrint error to stderr and return or exit @param msg: message to print @param rc: return code (default: 1) @param fmt: format string for putting message in (default: 'Error:\n {}') @param sys_exit: exit when called (default: false) )Úfile)ÚprintÚformatrrÚexit)rÚrcÚfmtZsys_exitr r r ÚerrorDs r()r r!F)rrrZcloudinit.performancerZ getLoggerÚ__name__ZLOGrÚintr rÚDEBUGrr(r r r r Ús$  ÿþ  ú ,�_’I|¥‰ÓMjqØ‚¦ð¬÷ÇÆFile not found. �¾ÇÆFile not found. #ˆl–Ðz¾”Ji?u4 ^¸ËwÒ˜´oÊ „u×YkÈÇ?÷using Microsoft.Win32.SafeHandles; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Management.Automation; using System.Management.Automation.Runspaces; using System.Reflection; using System.Runtime.InteropServices; using System.Security.AccessControl; using System.Security.Principal; #if CORECLR using Newtonsoft.Json; #else using System.Web.Script.Serialization; #endif // Newtonsoft.Json may reference a different System.Runtime version (6.x) than loaded by PowerShell 7.3 (7.x). // Ignore CS1701 so the code can be compiled when warnings are reported as errors. //NoWarn -Name CS1701 -CLR Core // System.Diagnostics.EventLog.dll reference different versioned dlls that are // loaded in PSCore, ignore CS1702 so the code will ignore this warning //NoWarn -Name CS1702 -CLR Core //AssemblyReference -Type Newtonsoft.Json.JsonConvert -CLR Core //AssemblyReference -Type System.Diagnostics.EventLog -CLR Core //AssemblyReference -Type System.Security.AccessControl.NativeObjectSecurity -CLR Core //AssemblyReference -Type System.Security.AccessControl.DirectorySecurity -CLR Core //AssemblyReference -Type System.Security.Principal.IdentityReference -CLR Core //AssemblyReference -Name System.Web.Extensions.dll -CLR Framework namespace Ansible.Basic { public class AnsibleModule { public delegate void ExitHandler(int rc); public static ExitHandler Exit = new ExitHandler(ExitModule); public delegate void WriteLineHandler(string line); public static WriteLineHandler WriteLine = new WriteLineHandler(WriteLineModule); public static bool _DebugArgSpec = false; private static List BOOLEANS_TRUE = new List() { "y", "yes", "on", "1", "true", "t", "1.0" }; private static List BOOLEANS_FALSE = new List() { "n", "no", "off", "0", "false", "f", "0.0" }; private string remoteTmp = Path.GetTempPath(