From f707e1075a4956d7c8b79afdf2f22831ddc84360 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 13:28:59 -0500 Subject: [PATCH] Lint: F821 undefined name 'reqargs' These were functions that were missing an expected reqargs pass. --- api-daemon/pvcapid/flaskapi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 7aa98f15..9b3e6552 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -2310,7 +2310,7 @@ class API_Network_Lease_Element(Resource): {'name': 'hostname'} ]) @Authenticator - def post(self, vni, mac): + def post(self, vni, mac, reqargs): """ Create a new static DHCP lease {mac} in network {vni} --- @@ -3338,7 +3338,7 @@ class API_Storage_Ceph_Pool_Element(Resource): {'name': 'replcfg', 'required': True, 'helpmsg': "A valid replication configuration must be specified."} ]) @Authenticator - def post(self, pool): + def post(self, pool, reqargs): """ Create a new Ceph pool {pool} --- @@ -5640,7 +5640,7 @@ class API_Provisioner_Script_Element(Resource): {'name': 'data', 'required': True, 'helpmsg': "A script document must be specified."} ]) @Authenticator - def post(self, script): + def post(self, script, reqargs): """ Create a new script {script} ---