File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- import os
16
- import pwd
15
+ import getpass
17
16
18
17
from newrelic .admin import command , usage
19
18
from newrelic .common import agent_http , encoding_utils
@@ -79,7 +78,7 @@ def record_deploy(
79
78
path = f"/v2/applications/{ app_id } /deployments.json"
80
79
81
80
if user is None :
82
- user = pwd . getpwuid ( os . getuid ()). pw_gecos
81
+ user = getpass . getuser ()
83
82
84
83
deployment = {}
85
84
deployment ["revision" ] = revision
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import os
16
- import pwd
17
-
18
- USER = pwd .getpwuid (os .getuid ()).pw_name
19
16
20
17
21
18
def postgresql_settings ():
You can’t perform that action at this time.
0 commit comments