Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate workspace actions #12457

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

jmartin-tech
Copy link
Contributor

@jmartin-tech jmartin-tech commented Oct 15, 2019

  • When renaming a workspace allow validation to handle all cases the same
  • Do not display backtrace on console for rename failure, this is still logged to framework.log

Verification

List the steps needed to make sure this thing works

  • Start msfconsole
  • workspace -r default test
  • workspace -r default test
  • Verify a simple error message reports that rename could not validate as the workspace name is already taken

* When renaming a workspace allow validation to handle all cases the same
* Do not display backtrace on console for rename failure, this is still logged to framework.log
default_renamed = true if ws_to_update.name == DEFAULT_WORKSPACE_NAME
updated_ws = ws_to_update.update!(opts)
Copy link
Contributor Author

@jmartin-tech jmartin-tech Oct 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line prompted this change as update!() actually returns a boolean not the workspace object.

@busterb busterb self-assigned this Nov 19, 2019
bcook-r7 pushed a commit that referenced this pull request Nov 19, 2019
@bcook-r7 bcook-r7 merged commit 7505e1b into rapid7:master Nov 19, 2019
@busterb
Copy link
Member

busterb commented Nov 19, 2019

Release Notes

This revises how workspace operations, particularly renames, are handled in Metasploit 5.

@jmartin-tech jmartin-tech deleted the consolidate-workspace-action branch November 20, 2019 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants