Bug 680137 - [RFE] global settings used in client modules
Summary: [RFE] global settings used in client modules
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: James Slagle
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 563609
TreeView+ depends on / blocked
 
Reported: 2011-02-24 13:09 UTC by Daniel Mach
Modified: 2012-07-11 19:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-11 19:15:23 UTC


Attachments (Terms of Use)

Description Daniel Mach 2011-02-24 13:09:12 UTC
I noticed that global settings are used in client modules.

for example
pulp.client.server.set_active_server
sets global 'pulp.client.server.active_server' variable.

This means that a single python script can't easily maintain 2 different connections to 2 different Pulp servers.

It's probably not a big issue at this moment, but it indicates some design flaws.

Comment 1 Jay Dobies 2012-07-11 19:15:23 UTC
Refactored in v2.


Note You need to log in before you can comment on or make changes to this bug.