This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f3581557cf8e800511c6996252b364a618b8be00 Mon Sep 17 00:00:00 2001 | |
From: Kirill Goncharov <kdgoncharov@gmail.com> | |
Date: Wed, 22 Jan 2020 18:22:16 +0300 | |
Subject: [PATCH] Add python3.8 patch for salt-ssh | |
--- | |
0001-saltssh-py38.patch | 25 +++++++++++++++++++++++++ | |
PKGBUILD | 11 +++++++++-- | |
2 files changed, 34 insertions(+), 2 deletions(-) | |
create mode 100644 0001-saltssh-py38.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/danielmenezesbr/modernie-winrm/blob/master/ie-box-automation-plugin.rb | |
require 'rubygems' | |
require 'net/ssh' | |
require 'logger' | |
require 'log4r' | |
module LocalCommand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
You also need to create initial migration for guardian app! | |
""" | |
from django.contrib.contenttypes.models import ContentType | |
from guardian.models import UserObjectPermission, GroupObjectPermission | |
def is_user(obj): | |
return obj._meta.model_name == 'user' |