2016-09-10 13:08:10 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
#
|
|
|
|
|
2016-09-11 08:59:19 +00:00
|
|
|
from users.utils import AdminUserRequiredMixin
|
|
|
|
from users.models import User, UserGroup
|
|
|
|
from assets.models import Asset, AssetGroup, SystemUser
|
2016-11-15 11:33:04 +00:00
|
|
|
from assets.serializers import AssetGrantedSerializer, AssetGroupSerializer
|
2016-09-10 13:08:10 +00:00
|
|
|
|
2016-11-02 16:09:38 +00:00
|
|
|
|
2017-02-06 15:13:27 +00:00
|
|
|
def push_system_user(assets, system_user):
|
|
|
|
print('Push system user %s' % system_user.name)
|
2016-11-02 16:09:38 +00:00
|
|
|
for asset in assets:
|
2017-02-06 15:13:27 +00:00
|
|
|
print('\tAsset: %s' % asset.ip)
|
|
|
|
|
2016-11-02 16:09:38 +00:00
|
|
|
|