Skip to content

Commit

Permalink
Started working on k8s execution node function.
Browse files Browse the repository at this point in the history
  • Loading branch information
djyasin committed Jul 20, 2023
1 parent 72a56ea commit e26202c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions awx/main/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,13 @@ def get_corrected_cpu(cpu_count, obj): # formerlly get_cpu_capacity
return cpu_count # no correction


def get_cpu_k8s(self, obj):
from django.conf import settings

if settings.IS_K8S and obj.node_type == 'execution':
pass


def get_cpu_effective_capacity(cpu_count):
from django.conf import settings

Expand Down

0 comments on commit e26202c

Please sign in to comment.