Skip to content

Commit

Permalink
feat/adding preppost license to allowed (#3294)
Browse files Browse the repository at this point in the history
* feat/adding preppost license to allowed

* chore: adding changelog file 3294.miscellaneous.md

* fix: test

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
  • Loading branch information
germa89 and pyansys-ci-bot authored Aug 26, 2024
1 parent 553bae7 commit ba66041
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changelog.d/3294.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat/adding preppost license to allowed
5 changes: 4 additions & 1 deletion src/ansys/mapdl/core/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,10 @@ def _check_license_argument(license_type, additional_switches):
# In older versions probably it might raise an error. But not sure.
license_type = license_type.lower().strip()

if "enterprise" in license_type and "solver" not in license_type:
if "preppost" in license_type:
license_type = "preppost"

elif "enterprise" in license_type and "solver" not in license_type:
license_type = "ansys"

elif "enterprise" in license_type and "solver" in license_type:
Expand Down
1 change: 1 addition & 0 deletions src/ansys/mapdl/core/licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"meba": "Ansys Mechanical Enterprise Solver",
"mech_2": "Ansys Mechanical Premium",
"mech_1": "Ansys Mechanical Pro",
"preppost": "Mechanical Enterprise PrepPost",
}
ALLOWABLE_LICENSES = list(LICENSES)

Expand Down

0 comments on commit ba66041

Please sign in to comment.