def ensure_metadata_ip():
 _execute('ip', 'addr', 'add', '169.254.169.254/32', 'scope', 'link', 'dev', 'lo', run_as_root=True, check_exit_code=[0, 2, 254])

def ensure_metadata_ip ( ) : _execute ( 'ip' , 'addr' , 'add' , '169.254.169.254/32' , 'scope' , 'link' , 'dev' , 'lo' , run_as_root = True , check_exit_code = [ 0 , 2 , 254 ] )
sets up local metadata ip .