Skip to content

windows replicate - #588

Merged
trriplejay merged 1 commit into
Shippable:masterfrom
trriplejay:master
Oct 10, 2018
Merged

windows replicate#588
trriplejay merged 1 commit into
Shippable:masterfrom
trriplejay:master

Conversation

@trriplejay

@trriplejay trriplejay commented Oct 10, 2018

Copy link
Copy Markdown
Contributor

#587

  • file replicate fully working
  • --webhook_data_only not yet working
  • some tests not yet run.
  • for initial review only.

Comment thread shipctl/x86_64/WindowsServer_2016/utility.ps1
$outputVersion = @{
"propertyBag" = $fromVersion
}
(ConvertTo-Json $outputVersion -depth 100) | Out-File -filepath "$mdFilePathTo" -Encoding ASCII

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are you sure ASCII is a good choice? The source might have unicode text.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hmm. i chose ascii because reqProc was failing to read the json when i left it at the default encoding value. but i'll investigate this more once the rest of the functionality is in.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i've changed it to UTF8 now, which doesn't seem to cause problems, and I think that's typically what we specify in other situations.

(ConvertTo-Json $outputVersion -depth 100) | Out-File -filepath "$mdFilePathTo" -Encoding ASCII
} else {
$toVersionJson = Get-Content -Raw -Path $mdFilePathTo | ConvertFrom-Json
# TODO: add-member doesn't seem to be working as i thought it would.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's not working?

@trriplejay trriplejay changed the title WIP - windows replicate windows replicate Oct 10, 2018
@trriplejay
trriplejay merged commit 6f42982 into Shippable:master Oct 10, 2018
@trriplejay

Copy link
Copy Markdown
Contributor Author

merging since the comments have been addressed. @rageshkrishna let me know if you have any other concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants